forked from oknosoft/helloworld
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
41 lines (41 loc) · 921 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
{
"parser": "babel-eslint", // https://github.com/babel/babel-eslint,
"parserOptions": {
"ecmaVersion": 7,
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"node": true,
"mocha": true,
"es6": true
},
"plugins": [
"react"
],
"globals": {
"$p": true,
"expect": true,
"sinon": true,
"__DEV__": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"rules": {
"strict": [2, "global"],
"no-undef": 1,
"no-unused-vars": 1,
"semi": [1, "always"],
"semi-spacing": [1, {"before": false, "after": true}],
"no-case-declarations": 1,
"no-extra-semi": 1,
"no-unexpected-multiline": 1,
"no-useless-escape": 1,
"no-mixed-spaces-and-tabs": 1,
"quotes": [0, "single", "avoid-escape"],
"indent": [0, 2, { "SwitchCase": 1 }],
"react/prop-types": 1,
"react/display-name": 1
}
}