-
Notifications
You must be signed in to change notification settings - Fork 108
/
.eslintrc.js
56 lines (56 loc) · 1.36 KB
/
.eslintrc.js
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
module.exports = {
"env": {
"browser": true,
"jest": true,
"node": true,
"es6": true
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"react"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"rules": {
"indent": ["error", 2],
"camelcase": [2, {"properties": "always"}],
"comma-dangle": [2, "never"],
"dot-location": [2, "property"],
"lines-around-comment": 0,
"newline-after-var": 0,
"no-alert": 2,
"no-debugger": 2,
"no-else-return": 2,
"no-nested-ternary": 0,
"no-param-reassign": 0,
"no-restricted-properties": 0,
"no-unmodified-loop-condition": 0,
"no-useless-escape": 0,
"no-var": 2,
"object-curly-spacing": [2, "always"],
"operator-assignment": 0,
"operator-linebreak": [2, "after"],
"padding-line-between-statements": 0,
"prefer-arrow-callback": 0,
"prefer-spread": 0,
"react/jsx-curly-spacing": [2, "always"],
"react/prop-types": 0,
"semi": [2, "always"],
"space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
"strict": 0,
"valid-jsdoc": ["error", { prefer: { "returns": "return"}}],
"quotes": [2, "single"]
}
};