-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.json
62 lines (62 loc) · 1.72 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
{
"root": true,
"env": {
"commonjs": true,
"es6": true,
"node": true,
"jest": true
},
"extends": ["eslint:recommended", "plugin:node/recommended", "plugin:security/recommended", "plugin:import/errors"],
"plugins": ["security"],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"curly": ["error"],
"eqeqeq": ["error", "always", { "null": "ignore" }],
"import/extensions": ["error", "never", { "json": "always", "js": "ignore" }],
"import/first": "error",
"import/no-duplicates": "error",
"import/no-useless-path-segments": "error",
"import/order": [
"error",
{
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
"pathGroups": [
{
"pattern": "#tokens/**",
"group": "internal"
},
{
"pattern": "#libs/**",
"group": "internal"
},
{
"pattern": "#common/**",
"group": "internal"
},
{
"pattern": "#common-backend/**",
"group": "internal"
}
]
}
],
"no-constant-condition": "off",
"no-template-curly-in-string": "error",
"no-var": "error",
"no-nested-ternary": "error",
"node/no-missing-import": "off",
"node/no-unsupported-features/es-syntax": ["error", { "ignores": ["dynamicImport", "modules"] }],
"object-shorthand": ["error", "never"],
"one-var": ["error", "never"],
"prefer-const": "error",
"prefer-template": "error",
"security/detect-object-injection": "off"
},
"settings": {
"import/external-module-folders": ["node_modules"],
"failOnWarning": true
}
}