-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.eslintrc.json
78 lines (78 loc) · 1.72 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"extends": ["react-app", "plugin:jsx-a11y/recommended", "prettier", "prettier/react"],
"plugins": ["jsx-a11y", "prettier"],
"parser": "@typescript-eslint/parser",
"settings": {
"import/resolver": "webpack"
},
"rules": {
"quotes": [
2,
"single",
{
"avoidEscape": true
}
],
"import/no-unresolved": [
2,
{
"caseSensitive": false
}
],
"jsx-quotes": ["error", "prefer-single"],
"jsx-a11y/label-has-for": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/no-autofocus": "off",
"jsx-a11y/media-has-caption": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/no-onchange": "off",
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx", ".d.ts"]
}
],
"react/destructuring-assignment": [
"error",
"always",
{
"ignoreClassFields": true
}
],
"react/state-in-constructor": ["error", "never"],
"react/require-default-props": [
0,
{
"forbidDefaultForRequired": true
}
],
"react/sort-prop-types": [
1,
{
"callbacksLast": false,
"ignoreCase": true,
"requiredFirst": true,
"sortShapeProp": true,
"noSortAlphabetically": false
}
],
"react/jsx-props-no-spreading": [
0,
{
"html": true,
"custom": true
}
],
"react/self-closing-comp": [
"error",
{
"component": true,
"html": false
}
],
"curly": "warn",
"react/prop-types": 1
}
}