-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.eslintrc
54 lines (53 loc) · 1.67 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
{
"parser": "@babel/eslint-parser",
"extends": "airbnb",
"env": {
"browser": true,
"node": true,
"jest": true
},
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".tsx"
]
}
}
},
"globals": {
"globalThis": true
},
"parserOptions": {
"ecmaVersion":"latest"
},
"rules": {
"arrow-parens": ["error", "always"],
"function-paren-newline": ["error", "consistent"],
"implicit-arrow-linebreak": ["off"],
"no-confusing-arrow": ["off"],
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 0, "maxBOF": 0 }],
"object-curly-newline": ["error", { "consistent": true }],
"operator-linebreak": ["off"],
"import/no-extraneous-dependencies": ["off"],
"import/no-useless-path-segments": ["off"],
"import/prefer-default-export": ["off"],
"jsx-a11y/click-events-have-key-events": ["off"],
"jsx-a11y/label-has-for": ["error", { "required": { "every": [ "id" ] }, "allowChildren": true }],
"jsx-a11y/no-noninteractive-element-interactions": ["off"],
"jsx-a11y/no-static-element-interactions": ["off"],
"react/button-has-type": ["off"],
"react/destructuring-assignment": ["off"],
"react/forbid-prop-types": ["error", { "forbid": ["any"] }],
"react/jsx-filename-extension": ["error", { "extensions": [".js"] }],
"react/require-default-props": ["off"],
"react/jsx-props-no-spreading": ["off"],
"no-restricted-exports": ["off"],
// "comma-dangle": ["error", "never"],
// "quotes": ["error", "double"],
// "quote-props": ["error", "always"],
// "semi": ["error", "never"],
"react/jsx-fragments": ["off"]
}
}