-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy path.eslintrc.json
45 lines (45 loc) · 1.04 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
{
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"no-console": ["warn"],
"prefer-template": "error",
"array-bracket-spacing": ["error", "never"],
"computed-property-spacing": ["error", "never"],
"dot-notation": ["warn"],
"indent": ["error", 2, {"SwitchCase": 1}],
"linebreak-style": ["error", "unix"],
"no-inline-comments": "off",
"no-param-reassign": ["error", {
"props": false
}],
"quotes": ["error", "single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"semi": ["error", "always"],
"space-in-parens": ["error", "never"],
"no-var": ["error"],
"prefer-arrow-callback": ["error", { "allowNamedFunctions": true }],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error"
},
"globals": {
"DocumentTouch": false
},
"plugins": [
"react"
]
}