-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
103 lines (103 loc) · 2.7 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:vue/recommended",
"standard",
"plugin:prettier/recommended"
],
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser",
"ecmaVersion": 2021,
"sourceType": "module",
"extraFileExtensions": [".vue"]
},
"plugins": ["import"],
"rules": {
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-debugger": "error",
"object-curly-spacing": "error",
"array-bracket-spacing": "error",
"no-multi-spaces": "error",
"vue/multi-word-component-names": "warn",
"vue/order-in-components": "error",
"import/order": "error",
"curly": "error",
"brace-style": "error",
"no-else-return": "error",
"no-lonely-if": "error",
"require-await": "error",
"no-extra-parens": "error",
"func-style": ["error", "declaration", { "allowArrowFunctions": true }],
"eol-last": "error",
"no-eval": "error",
"no-implied-eval": "error",
"complexity": "warn",
"max-depth": "warn",
"max-lines": "error",
"max-lines-per-function": "error"
},
"ignorePatterns": ["**/node_modules/**/*", "**/dist/**/*"],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true
}
}
},
"overrides": [
{
"files": ["**/__tests__/*.{j,t}s?(x)", "**/tests/**/*.spec.{j,t}s?(x)"],
"env": {
"jest": true
},
"plugins": ["jest"],
"rules": {
"max-lines-per-function": "off"
}
},
{
"files": ["packages/**/*.js", "packages/**/*.vue"],
"env": {
"browser": true
},
"plugins": ["eslint-plugin-vue"]
},
{
"files": ["packages/**/*.ts"],
"env": {
"browser": true
},
"parserOptions": {
"parser": "@typescript-eslint/parser",
"ecmaVersion": 2021,
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["eslint-plugin-tsdoc"],
"rules": {
"tsdoc/syntax": "warn",
"no-use-before-define": "off",
"@typescript-eslint/promise-function-async": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": ["typeLike"],
"format": ["PascalCase"]
},
{
"selector": ["memberLike"],
"format": ["camelCase", "UPPER_CASE", "snake_case"]
}
],
"@typescript-eslint/consistent-type-definitions": ["error", "interface"]
}
}
]
}