-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
75 lines (75 loc) · 2.52 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
70
71
72
73
74
75
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./tsconfig.json"],
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/strict",
"plugin:import/recommended",
"plugin:import/typescript",
"prettier"
],
"env": {
"node": true
},
"rules": {
"@typescript-eslint/consistent-type-exports": [
"error",
{ "fixMixedExportsWithInlineTypeSpecifier": false }
],
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/method-signature-style": "error",
"@typescript-eslint/no-use-before-define": ["error", "nofunc"],
"@typescript-eslint/no-unnecessary-qualifier": "error",
"@typescript-eslint/no-useless-empty-export": "error",
"@typescript-eslint/prefer-readonly": "error",
"@typescript-eslint/prefer-regexp-exec": "error",
"@typescript-eslint/sort-type-constituents": "error",
"import/newline-after-import": "error",
"import/no-empty-named-blocks": "error",
"import/no-extraneous-dependencies": "error",
"import/no-import-module-exports": "error",
"array-callback-return": "error",
"eqeqeq": "error",
"logical-assignment-operators": "error",
"no-array-constructor": "error",
"no-await-in-loop": "error",
"no-constructor-return": "error",
"no-else-return": "error",
"no-extra-bind": "error",
"no-lonely-if": "error",
"no-new-native-nonconstructor": "error",
"no-new-object": "error",
"no-new-wrappers": "error",
"no-promise-executor-return": "error",
"no-self-compare": "error",
"no-template-curly-in-string": "error",
"no-unmodified-loop-condition": "error",
"no-unreachable-loop": "error",
"no-unused-private-class-members": "error",
"no-useless-computed-key": "error",
"no-useless-rename": "error",
"no-var": "error",
"object-shorthand": "error",
"operator-assignment": "error",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-exponentiation-operator": "error",
"prefer-numeric-literals": "error",
"prefer-object-has-own": "error",
"prefer-object-spread": "error",
"prefer-regex-literals": "error",
"prefer-spread": "error",
"prefer-template": "error",
"require-atomic-updates": "error",
"yoda": "error",
"no-control-regex": "off"
}
}