-
Notifications
You must be signed in to change notification settings - Fork 12
/
.eslintrc
59 lines (59 loc) · 1.49 KB
/
.eslintrc
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
{
"extends": [
"airbnb",
"plugin:jest/recommended",
"plugin:jsx-a11y/strict"
],
"parser": "babel-eslint",
"plugins": [
"babel",
"jest",
"jsx-a11y",
"react-hooks"
],
"env": {
"browser": true,
"es6": true,
"jest/globals": true,
"node": true
},
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"settings": {
"import/resolver": {
"alias" : []
}
},
"globals": {
"document": true,
"window": true,
"Element": true,
"HTMLElement": true,
"MutationObserver": true,
"$": true,
"jQuery": true
},
"rules": {
"jest/no-large-snapshots": ["warn", { "maxSize": 50, "inlineMaxSize": 50 }],
"react/no-unknown-property": ["warn", {"ignore" : ["class", "for", "hreflang", "daa-ll", "daa-lh", "daa-im", "daa-state"]}],
"react/react-in-jsx-scope": "off",
"react/jsx-indent": ["error", 4],
"react/jsx-indent-props": ["error", 4],
"react/jsx-closing-bracket-location": [1, {"selfClosing": "after-props", "nonEmpty": "after-props"}],
"react/jsx-filename-extension": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": 0,
"indent": ["error", 4, {"SwitchCase": 1}],
"class-methods-use-this": "off",
"no-param-reassign": ["error", { "props": false }],
"linebreak-style": 0,
"no-plusplus": "off",
"no-mixed-operators": "off",
"no-restricted-syntax": "off"
}
}