-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.json
60 lines (58 loc) · 1.96 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
59
60
{
"extends": "airbnb",
"globals": {
"window": true,
"document": true,
"fetch": true,
"btoa": true,
"atob": true,
"history": true,
"location": true,
"addEventListener": true,
"localStorage": true
},
"rules": {
"no-undef": "error",
"no-unused-vars": [2, {
"varsIgnorePattern": "h"
}],
"linebreak-style": "off",
"prefer-template": "off",
"indent": ["error", 4, { "SwitchCase": 1 }],
"consistent-return": "off",
"no-param-reassign": [2, { "props": false }],
"react/jsx-indent": ["error", 4],
"react/jsx-indent-props": ["error", 4],
"react/no-unknown-property": "off",
"react/react-in-jsx-scope": 0,
"react/sort-comp": 0,
"react/require-render-return": 2,
"react/jsx-closing-bracket-location": 0,
"react/jsx-space-before-closing": 0,
"react/jsx-first-prop-new-line": 0,
"react/prop-types": 0,
"react/jsx-filename-extension": [1, {"extensions": [".js", ".jsx"]}],
"react/jsx-uses-vars": 2,
"react/jsx-one-expression-per-line": "off",
"no-use-before-define": "off",
"jsx-quotes": "off",
"react/jsx-wrap-multilines": "off",
"implicit-arrow-linebreak": "off",
"arrow-parens": "off",
"semi": ["warn"],
"max-len": ["warn", 130],
"no-console": "off",
"no-extra-semi": "warn",
"import/no-dynamic-require": 0,
"import/no-extraneous-dependencies": 0,
"import/prefer-default-export": 0,
"strict": 0,
"global-require":"off",
"jsx-a11y/interactive-supports-focus":"off",
"no-else-return": "off",
"jsx-a11y/no-noninteractive-element-interactions": "warn",
"jsx-a11y/media-has-caption": "off",
"object-curly-newline": "off",
"no-unused-expressions": [ "error", {"allowTernary": true}]
}
}