-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
73 lines (73 loc) · 2.14 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
{
"parser": "babel-eslint",
"extends": "airbnb",
"plugins": [
"babel",
"react",
"react-hooks",
"jsx-a11y",
"import",
"mocha"
],
"settings": {
"import/resolver": {
"node": {
"paths": [
"src",
"src/frontend",
"src/backend"
]
}
}
},
"env": {
"browser": true,
"mocha": true
},
"globals": {
"chai": true,
"expect": true
},
"rules": {
"camelcase": ["off"],
"no-alert": ["off"],
"babel/camelcase": ["error", { "properties": "never" }],
"no-unused-expressions": ["off"],
"babel/no-unused-expressions": ["error", {
"allowShortCircuit": false,
"allowTernary": false,
"allowTaggedTemplates": false
}],
"quotes": ["off"],
"babel/quotes": ["error", "single", { "avoidEscape": true }],
"prefer-destructuring": ["error", { "object": true, "array": false }],
"object-curly-newline": ["error", { "consistent": true }],
"function-paren-newline": ["off"],
"jsx-a11y/label-has-for": [ "error", { "required": { "some": [ "nesting", "id" ] } }],
"max-len": ["error", 120, 2, {
"ignoreUrls": true,
"ignoreComments": false,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}],
"class-methods-use-this": ["off"],
"mocha/max-top-level-suites": ["error"],
"mocha/no-exclusive-tests": ["error"],
"mocha/no-global-tests": ["error"],
"mocha/no-identical-title": ["error"],
"mocha/no-nested-tests": ["error"],
"mocha/no-sibling-hooks": ["error"],
"mocha/no-skipped-tests": ["error"],
"mocha/no-top-level-hooks": ["error"],
"no-unused-vars": ["error", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
"multiline-comment-style": ["off"],
"react/no-typos": ["off"],
"react/no-unused-prop-types": ["error", { "skipShapeProps": true }],
"react/require-default-props": ["off"],
"react-hooks/rules-of-hooks": ["error"],
"react-hooks/exhaustive-deps": ["warn"],
"import/prefer-default-export": ["off"],
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }]
}
}