-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.eslintrc.json
53 lines (51 loc) · 1.84 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
{
/**
* @Owners cmZhou
*/
"root": true,
"extends": [
"./configs/.eslintrc.json"
],
"rules": {
"import/no-extraneous-dependencies": ["error", {
"devDependencies": true,
"optionalDependencies": false,
"peerDependencies": false,
"bundledDependencies": false
}],
"@typescript-eslint/tslint/config": ["error", {
"lintFile": "./configs/tslint.json"
}],
"import/order": "off",
"@typescript-eslint/consistent-indexed-object-style": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"import/no-internal-modules": "off"
},
"overrides": [{
"files": ["./bin/**"],
"rules": {
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-implicit-any-catch": "off",
"@typescript-eslint/no-magic-numbers": "off",
"@typescript-eslint/prefer-optional-chain": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/no-unused-vars": ["error", {
"argsIgnorePattern": "^_"
}],
"@typescript-eslint/no-use-before-define": ["error"],
"no-undef": ["error", {
"typeof": false
}],
"no-dupe-args": ["error"],
"no-unreachable": ["error"],
"no-dupe-keys": ["error"],
"valid-typeof": ["error"]
}
}]
}