-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
110 lines (110 loc) · 2.82 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2017,
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"es6": true,
"browser": true,
"jest": true
},
"ignorePatterns": ["**/*.css"],
"settings": {
"import/resolver": {
"node": {
"paths": ["src"],
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
},
"import/extensions": [".js", ".ts", ".jsx", ".tsx"]
},
"extends": [
"airbnb",
"airbnb/hooks",
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"plugins": ["jsx-a11y"],
"rules": {
"import/prefer-default-export": 0,
"react/destructuring-assignment": 0,
"react/jsx-no-bind": 0,
"react/no-unused-prop-types": 0,
"no-console": ["warn", { "allow": ["info", "warn", "error", "debug"] }],
"prefer-destructuring": ["warn", { "object": true, "array": false }],
"no-underscore-dangle": 0,
"@typescript-eslint/no-explicit-any": 0,
"no-nested-ternary": 0,
"react/react-in-jsx-scope": "off",
"@typescript-eslint/no-var-requires": "off",
"import/no-extraneous-dependencies": "off",
"global-require": "off",
"no-use-before-define": "off",
"no-shadow": "off",
"no-plusplus": 0,
"@typescript-eslint/no-shadow": ["warn"],
"@typescript-eslint/no-use-before-define": ["warn"],
"react/prop-types": 0,
"react/no-multi-comp": 0,
"react/jsx-props-no-spreading": 0,
"react/display-name": "off",
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
"react/button-has-type": "off",
"react/require-default-props": "off",
"react/jsx-no-useless-fragment": "off",
"react/no-array-index-key": "off",
"jsx-a11y/role-has-required-aria-props": "off",
"no-alert": "off",
"react/function-component-definition": [
"error",
{
"namedComponents": ["function-declaration", "arrow-function"],
"unnamedComponents": "arrow-function"
}
],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"mjs": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"jsx-a11y/label-has-associated-control": [
"error",
{
"required": {
"some": ["nesting", "id"]
}
}
],
"jsx-a11y/label-has-for": [
"error",
{
"required": {
"some": ["nesting", "id"]
}
}
],
// Typescript
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
]
}
}