forked from traccar/traccar-web
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
40 lines (40 loc) · 1.17 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
{
"extends": "airbnb",
"env": {
"browser": true
},
"parserOptions": {
"ecmaVersion": 2020
},
"overrides": [{
"files": ["*.jsx", "*.js"]
}],
"plugins": [
"react"
],
"ignorePatterns": ["legacy/", "build/", "switcher.js", "theme.js"],
"rules": {
"max-len": [0],
"no-shadow": [0],
"no-return-assign": [0],
"no-param-reassign": [0],
"no-prototype-builtins": [0],
"object-curly-newline": [1, {
"ObjectExpression": { "minProperties": 8, "multiline": true, "consistent": true },
"ObjectPattern": { "minProperties": 8, "multiline": true, "consistent": true },
"ImportDeclaration": { "minProperties": 4, "multiline": true, "consistent": true },
"ExportDeclaration": { "minProperties": 4, "multiline": true, "consistent": true }
}],
"import/no-unresolved": [1, {
"ignore": ["\\.svg", "virtual:"]
}],
"react/function-component-definition": [1, {
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}],
"react/jsx-props-no-spreading": [0],
"jsx-a11y/anchor-is-valid": [0],
"jsx-a11y/label-has-associated-control": [0],
"react/prop-types": [0]
}
}