-
Notifications
You must be signed in to change notification settings - Fork 41
/
.eslintrc
57 lines (57 loc) · 1.25 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
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"eslint-config-airbnb",
"plugin:prettier/recommended",
"prettier"
],
"env": {
"browser": true,
"node": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["react", "@typescript-eslint"],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"rules": {
"no-restricted-globals": [1, "isFinite"],
"valid-jsdoc": [
"error",
{
"requireReturnType": false,
"requireParamType": false
}
],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 2,
"no-var": 0,
"vars-on-top": 0,
"prefer-destructuring": "off",
"no-mixed-operators": "off",
"no-plusplus": "off",
"no-continue": "off",
"no-unused-vars": "off",
"react/require-default-props": "off",
"react/jsx-filename-extension": "off",
"react/forbid-prop-types": "off",
"react/jsx-props-no-spreading": "off"
}
}