-
-
Notifications
You must be signed in to change notification settings - Fork 238
/
.eslintrc
63 lines (63 loc) · 2.08 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
{
"root": true,
"ignorePatterns": [
"*.d.ts",
"*.js",
"*.cjs",
"node_modules/**/*",
"dist/**/*",
"coverage/**/*"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/stylistic"
],
"env": {
"node": true,
"browser": true
},
"rules": {
"no-prototype-builtins": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
/**
* This rules is set up to use the same rules as "@typescript-eslint/recommended" in v5.
* @see https://typescript-eslint.io/blog/announcing-typescript-eslint-v6/
*/
// This rules removed from recommended in v6.
"no-extra-semi": "off",
"@typescript-eslint/no-extra-semi": "error",
// This rules added recommended in v6.
"@typescript-eslint/no-duplicate-enum-values": "off",
"@typescript-eslint/no-unsafe-declaration-merging": "off",
// This rule moved from recommended to stylistic in v6.
"@typescript-eslint/array-type": "off",
"@typescript-eslint/ban-tslint-comment": "off",
"@typescript-eslint/class-literal-property-style": "off",
"@typescript-eslint/consistent-generic-constructors": "off",
"@typescript-eslint/consistent-indexed-object-style": "off",
"@typescript-eslint/consistent-type-assertions": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/no-confusing-non-null-assertion": "off",
"@typescript-eslint/prefer-for-of": "off",
"@typescript-eslint/prefer-function-type": "off"
}
}