-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
98 lines (98 loc) · 2.29 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
88
89
90
91
92
93
94
95
96
97
98
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"prettier"
],
"plugins": ["react"],
"env": {
"browser": true,
"commonjs": true,
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 8
},
"parser": "@typescript-eslint/parser",
"rules": {
"no-console": [
"error",
{
"allow": ["warn", "error", "info"]
}
],
"no-debugger": "warn",
"no-unused-vars": [
"warn",
{
"ignoreRestSiblings": true
}
],
"require-yield": "warn",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"no-useless-return": "warn",
"no-return-await": "warn",
"no-with": "error",
"require-await": "warn",
"yoda": "error",
"no-new": "error",
"no-loop-func": "error",
"array-callback-return": "error",
"dot-notation": "error",
"eqeqeq": [
"error",
"always",
{
"null": "ignore"
}
],
"no-alert": "warn",
"prefer-rest-params": "error",
"prefer-template": "warn",
"prefer-spread": "warn",
"prefer-destructuring": "warn",
"prefer-const": "warn",
"prefer-arrow-callback": "warn",
"no-var": "error",
"no-duplicate-imports": "warn",
"no-useless-rename": "warn",
"object-shorthand": "warn",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"react-hooks/exhaustive-deps": "off",
"@typescript-eslint/ban-types": ["error",
{
"types": {
"object": false,
"Function": false
},
"extendDefaults": true
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-empty-function": "off"
},
"globals": {
"console": false,
"process": false,
"IS_PRODUCTION": false,
"IS_DEVELOPMENT": false,
"check": true,
"gen": true
},
"overrides": [
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}
]
}