-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
58 lines (58 loc) · 1.19 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
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"settings": {
"react": {
"version": "latest"
}
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"indent": [ "error", "tab", {
"SwitchCase": 1,
"VariableDeclarator": "first",
"MemberExpression": 1,
"ArrayExpression": 1
} ],
"no-console": "warn",
"linebreak-style": [ "error", "unix" ],
"quotes": [ "error", "single" ],
"semi": [ "error", "never" ],
"no-unused-vars": [ "warn", {
"vars": "all",
"args": "none"
}],
"no-prototype-builtins": [ 0 ],
"space-infix-ops": [ "error" ],
"no-trailing-spaces": "error",
"object-curly-spacing": [ 1, "always", {
"objectsInObjects": true
}],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"react/boolean-prop-naming": [ "error" ],
"react/no-typos": [ "error" ],
"react/jsx-curly-spacing": [ "error", {"when": "always"} ],
"react/display-name": ["off"]
}
}