-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
53 lines (53 loc) · 1.31 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
46
47
48
49
50
51
52
53
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module",
"project": "./tsconfig.json"
},
"ignorePatterns": ["node_modules/", "dist/"],
"env": {
"node": true,
"es6": true
},
"plugins": [
"@typescript-eslint",
"prettier",
"react",
"react-hooks",
"header"
],
"rules": {
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^unused"
}
],
"react/jsx-uses-vars": "warn",
"react/jsx-uses-react": "warn",
"react-hooks/rules-of-hooks": "warn",
"react-hooks/exhaustive-deps": "warn",
"prettier/prettier": "warn",
"no-console": [
"warn",
{
"allow": ["warn", "error"]
}
],
"no-alert": "warn",
"no-debugger": "warn",
"no-var": "warn",
"prefer-const": "warn",
"prefer-rest-params": "warn",
"prefer-spread": "warn",
"eqeqeq": "warn",
"@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/no-for-in-array": "warn",
"@typescript-eslint/no-misused-promises": "warn",
"@typescript-eslint/no-unnecessary-type-assertion": "warn",
"@typescript-eslint/prefer-includes": "warn",
"@typescript-eslint/prefer-string-starts-ends-with": "warn",
"header/header": ["warn", "header.txt"]
}
}