-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
37 lines (37 loc) · 1.08 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
{
"extends": ["airbnb-typescript-prettier", "plugin:react/jsx-runtime"],
"ignorePatterns": ["**/*.config.js"],
"overrides": [
{
"files": ["**/?(*.)+(spec|test).[jt]s?(x)"],
"extends": [
"plugin:jest/recommended",
"plugin:jest/style",
"plugin:jest-dom/recommended",
"plugin:testing-library/react"
],
"rules": {
"jest-dom/prefer-empty": "off",
"testing-library/no-node-access": "warn"
}
}
],
"rules": {
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/no-shadow": "warn",
"import/no-extraneous-dependencies": "off",
"no-empty-function": "off",
"no-unused-expressions": [
"error",
{ "allowShortCircuit": true, "allowTernary": true }
],
"one-var": ["warn", "always"],
"react-hooks/exhaustive-deps": "warn",
"react-hooks/rules-of-hooks": "error",
"react/jsx-props-no-spreading": "off",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"strict": ["error", "never"]
}
}