-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
64 lines (63 loc) · 1.67 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
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:node/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"node",
"prettier"
],
"rules": {
"no-console": "warn",
"no-unused-vars": "warn",
"@typescript-eslint/no-unused-vars": [
"warn",
{ "argsIgnorePattern": "^_" }
],
"@typescript-eslint/explicit-function-return-type": "off",
"node/no-unsupported-features/es-syntax": [
"error",
{ "ignores": ["modules"] }
],
"prettier/prettier": [
"error",
{
"endOfLine": "auto",
"semi": true,
"singleQuote": true,
"printWidth": 80,
"tabWidth": 2
}
],
"indent": ["error", 2],
"max-len": ["error", { "code": 100 }],
"max-lines": ["warn", { "max": 300, "skipBlankLines": true, "skipComments": true }],
"complexity": ["warn", { "max": 10 }],
"no-magic-numbers": ["warn", { "ignore": [0, 1] }],
"prefer-const": "warn",
"no-var": "error",
"eqeqeq": ["error", "always"],
"consistent-return": "warn",
"no-duplicate-imports": "error",
"no-multiple-empty-lines": ["error", { "max": 1 }],
"arrow-spacing": ["error", { "before": true, "after": true }],
"object-curly-spacing": ["error", "always"],
"array-bracket-spacing": ["error", "never"],
"space-in-parens": ["error", "never"],
"template-curly-spacing": ["error", "never"],
"comma-dangle": ["error", "never"]
}
}