-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
98 lines (98 loc) · 2.76 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
{
"env": {
"jest": true
},
"extends": [
"airbnb",
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:jest-dom/recommended",
"plugin:cypress/recommended"
],
"parser": "@typescript-eslint/parser",
"globals": {
"document": true,
"localStorage": true,
"window": true,
"navigator": true,
"fetch": true
},
"plugins": [
"@typescript-eslint/eslint-plugin",
"prettier",
"react-hooks",
"testing-library",
"jest-dom"
],
"rules": {
"prettier/prettier": ["error"],
"react/require-default-props": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-props-no-spreading": "off",
"react/prop-types": 0,
"react/no-array-index-key": 0,
"react/no-did-update-set-state": "off",
"react/jsx-filename-extension": [
1,
{ "extensions": [".jsx", ".tsx"] }
],
"react/react-in-jsx-scope": "off",
"react-hooks/exhaustive-deps": "warn",
"jsx-a11y/label-has-for": [ 1, {
"components": [ "Label" ],
"required": {
"some": [ "nesting", "id" ]
},
"allowChildren": false
}],
"jsx-a11y/media-has-caption": 1,
"jsx-a11y/anchor-is-valid": 0,
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/interface-name-prefix": 0,
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-shadow": ["error"],
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["**/*.test.js","**/*.spec.js", "**/*.test.jsx", "**/*.spec.ts", "**/*.spec.tsx", "**/*.test.ts", "**/*.test.tsx"]}],
"import/extensions": [
"error",
{
"ts": "never",
"tsx": "never",
"js": "never",
"jsx": "never"
}
],
"no-shadow": "off",
"no-use-before-define": "off",
"max-len": 0,
"camelcase": "off",
"no-unused-expressions": "warn",
"no-nested-ternary": "off",
"no-console": "off",
"prefer-destructuring": "off",
"global-require": "warn",
"no-underscore-dangle": [2, { "allow": [ "__STORE__" ] }]
},
"overrides": [
{
"files": [ "**/*.test.js","**/*.spec.js", "**/*.spec.ts", "**/*.spec.tsx", "**/*.test.ts", "**/*.test.tsx"],
"extends": [
"plugin:testing-library/react"
]
}
],
"settings": {
"import/resolver": {
"node": {
"paths": ["./"],
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
}
}