forked from nilsnolde/valhalla-app
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
63 lines (63 loc) · 1.27 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
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
},
"plugins": ["prettier", "import", "react"],
"extends": [
"prettier",
"standard",
"eslint:recommended",
"plugin:react/recommended"
],
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"standard/computed-property-even-spacing": 0,
"semi": 0,
"react/display-name": 0,
"curly": 2,
"dot-notation": 2,
"id-length": [
"error",
{ "min": 2, "exceptions": ["_", "L", "R", "i", "v", "e", "j"] }
],
"no-const-assign": 2,
"no-dupe-class-members": 2,
"no-else-return": 2,
"no-inner-declarations": 2,
"no-lonely-if": 2,
"no-shadow": 1,
"no-unneeded-ternary": 2,
"no-unused-expressions": 2,
"no-unused-vars": [
2,
{
"args": "none"
}
],
"no-useless-return": 2,
"no-var": 2,
"one-var": [2, "never"],
"prefer-arrow-callback": 2,
"prefer-const": 2,
"prefer-promise-reject-errors": 2,
"prettier/prettier": 2,
"sort-imports": 0,
"sort-keys": [0],
"sort-vars": 2,
"strict": [2, "global"]
}
}