-
-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy path.eslintrc
79 lines (79 loc) · 1.83 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"commonjs": true,
"node": true,
"mocha": true,
"jest": true
},
"extends": [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"airbnb-typescript",
"prettier",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"plugins": ["prettier", "react-hooks"],
"settings": {
"import/resolver": {
"babel-module": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
},
"react": {
"version": "detect"
}
},
"rules": {
"prettier/prettier": ["error"],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"@typescript-eslint/default-param-last": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-unused-vars": 0,
"react/display-name": 0,
"react/jsx-props-no-spreading": 0,
"react/require-default-props": 0,
"react/jsx-wrap-multilines": 0,
"react/prop-types": 0,
"react/jsx-filename-extension": [
1,
{
"extensions": [".ts", ".tsx"]
}
],
"jsx-a11y/heading-has-content": 0,
"jsx-a11y/anchor-has-content": 0,
"jsx-a11y/anchor-is-valid": 0,
"no-underscore-dangle": "off",
"no-console": 0,
"no-unused-vars": 0,
"arrow-body-style": 0,
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"no-param-reassign": [
2,
{
"props": false
}
]
}
}