-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
75 lines (75 loc) · 1.95 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
64
65
66
67
68
69
70
71
72
73
74
75
{
"root": true,
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true,
"experimentalDecorators": true
}
},
"plugins": [
"react",
"import"
],
"ecmaFeatures": {
"jsx": true,
"classes": true,
"experimentalObjectRestSpread": true,
"experimentalDecorators": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"settings": {
"import/resolve": {
"moduleDirectory": [ "node_modules", "app" ]
},
"import/resolver": {
"webpack": {
"config": "webpack.config.eslint.js"
}
},
"react": {
"createClass": "createClass", // Regex for Component Factory to use, default to "createClass"
"pragma": "React", // Pragma to use, default to "React"
"version": "15.0" // React version, default to the latest React stable release
}
},
"env": {
"es6": true,
"browser": true,
"mocha": true,
"node": true,
"commonjs": true
},
"rules": {
"no-console": 1,
"no-unused-vars": 1,
"indent": [ 0, 4 ],
"camelcase": 1,
"curly": 2,
"no-else-return": 1,
"no-trailing-spaces": 2,
"no-mixed-spaces-and-tabs": 2,
"eqeqeq": [ 2, "smart" ],
"brace-style": [ "error", "1tbs", {
"allowSingleLine": true
} ],
"comma-dangle": 1,
"comma-spacing": [ "error", {
"before": false,
"after": true
} ],
"keyword-spacing": [ "error", {
"before": true,
"after": true
} ],
"no-semi": 0,
"react/no-find-dom-node": 1,
"experimentalDecorators": 0
}
}