-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
72 lines (71 loc) · 2.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
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"extends": "airbnb",
"parser": "babel-eslint",
"plugins": [
"react-hooks"
],
"rules": {
"indent": ["warn", 4, { "SwitchCase": 1 }],
"padded-blocks": ["error", { "switches": "never", "blocks": "never", "classes": "always" }],
"key-spacing": ["error", {
"align": {
"beforeColon": true,
"afterColon": true,
"on": "colon"
}
}],
"linebreak-style": 0,
"no-undef": 0,
"no-plusplus": 0,
"no-underscore-dangle": 0,
"react/jsx-indent-props": ["warn", 4],
"react/jsx-indent": ["warn", 4],
"react/no-danger": 0,
"react/prefer-stateless-function": ["error", { "ignorePureComponents": true }],
"max-len": ["warn", {
"code": 155,
"ignoreComments": true,
"ignoreTrailingComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}
],
"curly": ["error", "all"],
"no-multiple-empty-lines": ["error", { "max": 1 }],
"import/named": 0,
"import/order": ["error", { "groups": [], "newlines-between": "never" }],
"import/newline-after-import": ["error", { "count": 1 }],
// "import/no-extraneous-dependencies": ["error", {"devDependencies": [ "**/*.test.js", "build/*.js" ]}],
"no-case-declarations": 0,
"react/jsx-filename-extension": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/label-has-for": 0,
"jsx-a11y/anchor-is-valid": 0,
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/no-noninteractive-element-interactions": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/jsx-props-no-spreading": 0,
"object-curly-newline": ["error",{ "multiline": true, "consistent": true }],
"arrow-parens": 0,
"react/function-component-definition" : 0,
"import/no-extraneous-dependencies": 0,
},
//
/*
"jsx-a11y/no-noninteractive-element-interactions": "off",
"react/jsx-curly-brace-presence": 0,
"jsx-a11y/control-has-associated-label": 0,
"import/no-cycle": 0,
"react/prop-types": [2, { "ignore": ["qaData", "trackingData", "marketing"] }],
"camelcase": [0, {"allow": ["^UNSAFE_"]}], */
// "react/jsx-filename-extension": [0, { "extensions": [".js", ".jsx"] }],
"settings": {
"import/resolver": {
"babel-module": {}
}
}
}