-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
45 lines (45 loc) · 1.5 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
38
39
40
41
42
43
44
45
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"env": {
"node": true,
"browser": true,
"es2021": true
},
"extends": ["airbnb", "react-app", "eslint:recommended", "plugin:react/recommended", "prettier"],
"plugins": ["react", "@typescript-eslint", "prettier"],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"],
"paths": ["src"]
}
}
},
"extension": {
"prettier/prettier": "error",
"react/jsx-props-no-spreading": "off",
"@typescript-eslint/no-empty-function": "off",
"react/function-component-definition": "off",
"@typescript-eslint/no-unused-vars": ["warn", { "varsIgnorePattern": "^_" }],
"no-param-reassign": "off",
"@typescript-eslint/default-param-last": "off",
"@typescript-eslint/ban-ts-comment": "off",
"import/no-cycle": "off",
"import/prefer-default-export": "off",
"react/no-array-index-key": "off",
"react/no-unused-prop-types": "off",
"react/require-default-props": "off",
"react/jsx-no-bind": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-console": ["warn", { "allow": ["warn", "error"] }],
"react/display-name": "off"
}
}