-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
94 lines (94 loc) · 2.56 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
{
"extends": [
"eslint:recommended",
"plugin:import/recommended"
],
"plugins": [
"import"
],
"env": {
"es2020": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
"rules": {
"arrow-parens": ["error", "as-needed"],
"dot-location": ["warn", "object"],
"import/extensions": ["error", "always"],
"import/first": "error",
"import/group-exports": "error",
"import/newline-after-import": ["error", {"considerComments": true, "count": 2, "exactCount": true}],
"import/no-absolute-path": "error",
"import/no-anonymous-default-export": ["error", {"allowLiteral": true}],
"import/no-deprecated": "error",
"import/no-empty-named-blocks": "error",
"import/no-named-default": "error",
"import/no-namespace": "error",
"import/no-self-import": "error",
"import/no-unassigned-import": "error",
"import/no-useless-path-segments": ["error", {"noUselessIndex": true}],
"import/order": [
"error",
{
"alphabetize": {"caseInsensitive": true, "order": "asc", "orderImportKind": "asc"},
"groups": ["builtin", "external", "internal", "parent", "sibling", "index", "object", "type"],
"newlines-between": "always",
"warnOnUnassignedImports": true
}
],
"indent": [
"error",
2,
{
"CallExpression": {"arguments": 2},
"FunctionDeclaration": {"parameters": 2},
"FunctionExpression": {"parameters": 2},
"SwitchCase": 1
}
],
"linebreak-style": ["error", "unix"],
"max-classes-per-file": ["error", 2],
"max-len": ["error", 120, {"ignoreUrls": true}],
"no-console": "off",
"no-duplicate-imports": ["error", {"includeExports": true}],
"no-multiple-empty-lines": ["error", {"max": 2, "maxBOF": 0, "maxEOF": 0}],
"no-unused-vars": [
"error",
{
"args": "all",
"argsIgnorePattern": "^_",
"caughtErrors": "all",
"caughtErrorsIgnorePattern": "^ignored",
"destructuredArrayIgnorePattern": "^_",
"ignoreRestSiblings": true,
"vars": "all"
}
],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"sort-imports": [
"error",
{
"ignoreCase": true,
"ignoreDeclarationSort": true
}
]
},
"overrides": [
{
"files": ["bin/**/*.js"],
"rules": {
"import/newline-after-import": "off",
"import/order": [
"error",
{
"newlines-between": "never"
}
]
}
}
]
}