-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
48 lines (48 loc) · 1.11 KB
/
.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
46
47
48
{
"extends": [
"airbnb",
"plugin:import/errors",
"plugin:import/warnings"
],
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"env": {
"browser": true,
"node": true,
"mocha": true
},
"parser": "babel-eslint",
"rules": {
"array-bracket-spacing": [ 2, "always" ],
"brace-style": [2, "stroustrup", { "allowSingleLine": true }],
"comma-dangle": [2, "always-multiline"],
"id-length": [2, {
"min": 3,
"max": 30,
"properties": "never",
"exceptions": ["t", "id"]
}],
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["**/*.spec.js", "**/mock.js"]}],
"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"]
}
}
}