-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
87 lines (82 loc) · 2.08 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
{
"parser": "@typescript-eslint/parser",
"extends": [
"airbnb",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:eslint-comments/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:react/jsx-runtime"
],
"env": {
"browser": true,
"jest": false
},
"plugins": [
"react",
"react-hooks",
"@typescript-eslint",
"import",
"jsx-a11y",
"prettier",
"eslint-comments"
],
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"import/prefer-default-export": 0,
"react/jsx-filename-extension": [2, {"extensions": [".js", ".jsx", ".ts", ".tsx"]}],
"react/jsx-props-no-spreading": 0,
"react/display-name": 0,
"react/prop-types": 0,
"react/function-component-definition": [2, {"namedComponents": "arrow-function"}],
"lines-between-class-members": 0,
"react/require-default-props": 0,
"react/destructuring-assignment": 1,
"eslint-comments/disable-enable-pair": "off",
"no-unused-vars": 0,
"@typescript-eslint/no-unused-vars": [
1,
{"vars": "all", "args": "after-used", "ignoreRestSiblings": false}
],
"no-console": [1, {"allow": ["warn", "error"]}],
"no-shadow": 0,
"@typescript-eslint/no-shadow": 2,
"no-use-before-define": 0,
"@typescript-eslint/no-use-before-define": 2,
"@typescript-eslint/explicit-function-return-type": 0,
"global-require": 2,
"react/jsx-one-expression-per-line": 0,
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],
"import/no-extraneous-dependencies": [
2,
{
"devDependencies": ["config-overrides.js", "src/**/*.test.{ts,tsx}"]
}
],
"import/extensions": [
2,
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
}
}