-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.json
69 lines (68 loc) · 1.86 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"root": true,
"parser": "@babel/eslint-parser",
"env": {
"es6": true,
"node": true,
"browser": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:prettier/recommended"
],
"rules": {
"no-underscore-dangle": "off",
"implicit-arrow-linebreak": "off",
"no-console": "warn",
"import/prefer-default-export": "off",
"no-unused-vars": "warn",
"react/prop-types": "off"
},
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx"],
"env": {
"es6": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["eslint-plugin-tsdoc"],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/strict",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:prettier/recommended"
],
"rules": {
"no-underscore-dangle": "off",
"implicit-arrow-linebreak": "off",
"no-console": "warn",
"import/prefer-default-export": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["warn"],
"tsdoc/syntax": "warn",
"@typescript-eslint/consistent-indexed-object-style": [
"warn",
"index-signature"
],
"@typescript-eslint/consistent-type-definitions": ["warn", "type"],
"@typescript-eslint/no-unsafe-assignment": "warn",
"@typescript-eslint/no-unsafe-member-access": "warn",
"@typescript-eslint/ban-ts-comment": "warn",
"no-unsafe-optional-chaining": "warn"
}
}
]
}