-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
50 lines (50 loc) · 1.04 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
49
50
{
"env": {
"amd": true,
"browser": true,
"es6": true,
"node": true,
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"globals": {
node: true,
__DEV__: TRUE
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 8,
"ecmaFeatures": {
"experimentalObjectRestSpread": true
},
"sourceType": "module"
},
"plugins": [
"import",
],
"rules": {
"func-style": [1, "expression", { "allowArrowFunctions": true }],
"comma-dangle": ['error', 'always-multiline'],
"no-extra-semi": 2,
"no-undef-init": 2,
"no-undef": 2,
"no-unused-vars": 2,
"no-var": 2,
"semi": [2, "always"],
"no-use-before-define": ["error", { "variables": false }],
"import/no-unresolved": 2,
"indent": [2, 2, { "SwitchCase": 1 }],
"quotes": [2, "single", "avoid-escape"],
"react/prop-types": 0,
"eol-last": 2,
"no-trailing-spaces": 2,
"no-console": 0,
},
"settings": {
"import/resolver": {
"babel-module": {}
}
}
}