-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
61 lines (61 loc) · 1.63 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
{
"env": { "node": true, "es6": true },
"extends": [
"airbnb-base",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "import"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": true
},
"root": true,
"rules": {
"semi": 0,
"quotes": 0,
"comma-dangle": 0,
"no-shadow": 0,
"no-plusplus": 0,
"no-unused-vars": [
"warn",
{ "varsIgnorePattern": "ignore", "argsIgnorePattern": "ignore" }
],
"no-param-reassign": 0,
"consistent-return": 0,
"no-debugger": 1,
"no-restricted-exports": 0,
"no-use-before-define": 0,
"no-return-assign": 0,
"import/extensions": 0,
"import/no-cycle": 0,
"import/no-extraneous-dependencies": 0,
"import/prefer-default-export": 0,
"class-methods-use-this": 0,
"no-underscore-dangle": 0,
"no-continue": 0,
"no-console": 0,
"no-restricted-syntax": 0
},
// 要禁用一组文件的配置文件中的规则,请使用 overrides 和 file
"overrides": [
{
"files": ["*.ts"],
"rules": {
"no-unused-expressions": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-unused-vars": [
"warn",
{ "varsIgnorePattern": "ignore", "argsIgnorePattern": "ignore" }
],
"@typescript-eslint/no-unused-expressions": 0,
"@typescript-eslint/consistent-type-imports": 2,
"@typescript-eslint/no-empty-function": 1,
"@typescript-eslint/ban-ts-comment": 0
}
}
]
}