-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
44 lines (44 loc) · 1.09 KB
/
.eslintrc.js
File metadata and controls
44 lines (44 loc) · 1.09 KB
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
module.exports = {
parser: "@typescript-eslint/parser",
extends: [
"airbnb",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"plugin:prettier/recommended",
],
plugins: ["@typescript-eslint", "react", "jsx-a11y", "react-hooks"],
env: {
browser: true,
jest: true,
node: true,
},
rules: {
"react/jsx-filename-extension": [1, { extensions: [".ts", ".tsx"] }],
"react/prop-types": 0,
"react/jsx-props-no-spreading": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"@typescript-eslint/no-unused-vars": ["error"],
"@typescript-eslint/explicit-function-return-type": "off",
"import/extensions": [
"error",
"ignorePackages",
{
ts: "never",
tsx: "never",
json: "never",
js: "never",
},
],
"prettier/prettier": ["error"],
"react/react-in-jsx-scope": "off",
},
settings: {
"import/resolver": {
node: {
extensions: [".js", ".jsx", ".ts", ".tsx"],
},
},
},
};