-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
45 lines (45 loc) · 987 Bytes
/
.eslintrc
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
{
"extends": [
"airbnb",
"import/warnings"
],
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"env": {
"browser": true,
"node": true,
"mocha": true
},
"parser": "babel-eslint",
"rules": {
"array-bracket-spacing": [ 2, "always" ],
"comma-dangle": [2, "always-multiline"],
"id-length": [2, {
"min": 3,
"max": 30,
"properties": "never",
"exceptions": ["cb", "r", "_", "id", "io", "rq", "db", "md", "mx", "qs", "go"]
}],
"import/no-named-as-default": 2,
"import/default": 0,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 2,
"no-console": 1,
"no-alert": 1,
"no-trailing-spaces": 2,
"object-curly-spacing": [ 2, "always" ],
"semi": [ 2, "never" ]
},
"plugins": [
"react", "import"
],
"settings": {
"import/parser": "babel-eslint",
"import/resolve": {
"moduleDirectory": ["node_modules", "src"]
}
}
}