-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.json
44 lines (44 loc) · 1.06 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
{
"extends": "eslint:recommended",
"env": {
"browser": true,
"es6": true
},
"globals": {
"chrome": false,
"module": false,
"process": false
},
"ecmaFeatures": {
"jsx": true,
"objectLiteralShorthandMethods": true
},
"plugins": ["react"],
"rules": {
"arrow-body-style": "error",
"arrow-parens": "off",
"arrow-spacing": "error",
"generator-star-spacing": "error",
"no-duplicate-imports": "error",
"no-useless-computed-key": "error",
"no-useless-constructor": "error",
"no-useless-rename": "error",
"no-unused-vars": "warn",
"no-var": "error",
"object-shorthand": "off",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"rest-spread-spacing": "error",
"template-curly-spacing": "error",
"yield-star-spacing": "error",
"no-console": "off",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error"
},
"parserOptions": {
"sourceType": "module"
}
}