-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
70 lines (70 loc) · 1.94 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
{
"parser": "@typescript-eslint/parser",
"extends": [
"airbnb",
"plugin:jsx-a11y/recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"globals": {
"window": true,
"document": true,
"Element": true
},
"plugins": ["react", "@typescript-eslint", "jsx-a11y", "prettier"],
"rules": {
"react/state-in-constructor": [0],
"no-console": [1, { "allow": ["warn", "error"] }],
"react/static-property-placement": [0],
"@typescript-eslint/ban-types": [0],
"react/require-default-props": [0],
"@typescript-eslint/no-unused-vars": [
1,
{
"ignoreRestSiblings": true
}
],
"react/default-props-match-prop-types": [0],
"@typescript-eslint/no-empty-function": [0],
"@typescript-eslint/ban-ts-comment": [0],
"@typescript-eslint/no-explicit-any": [0],
"react/no-unstable-nested-components": [0],
"react/jsx-no-constructed-context-values": [0],
"react/jsx-props-no-spreading": [0],
"consistent-return": "warn",
"import/no-unresolved": [0],
"import/prefer-default-export": [0],
"import/no-cycle": [0],
"import/no-extraneous-dependencies": [0],
"no-bitwise": ["error", { "allow": ["~"] }],
"react/destructuring-assignment": [0],
"react/jsx-filename-extension": [
1,
{ "extensions": [".js", ".jsx", ".tsx"] }
],
"react/no-unused-prop-types": [
"error",
{ "customValidators": [], "skipShapeProps": true }
],
"new-cap": ["error", { "capIsNewExceptions": ["Intercom"] }],
"react/prop-types": [0],
"react/no-danger": [0],
"react/no-unescaped-entities": [0],
"react/sort-comp": [0],
"jsx-a11y/label-has-associated-control": [
2,
{
"controlComponents": ["RadioInput"]
}
],
"import/extensions": "off"
},
"env": {
"jest": true
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx", ".spec.tsx"]
}
}
}