This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
51 lines (51 loc) · 1.88 KB
/
.eslintrc.js
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
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
parserOptions: {
tsconfigRootDir: __dirname,
project: ["./tsconfig.json"]
},
plugins: ["@typescript-eslint"],
rules: {
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/array-type": "error",
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
"@typescript-eslint/restrict-template-expressions": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{ varsIgnorePattern: "_.*" }
],
"@typescript-eslint/no-extra-non-null-assertion": ["error"],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unnecessary-condition": ["error"],
"@typescript-eslint/ban-tslint-comment": ["error"],
"@typescript-eslint/class-literal-property-style": ["error"],
"@typescript-eslint/consistent-type-assertions": [
"error",
{ assertionStyle: "as", objectLiteralTypeAssertions: "never" }
],
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
"@typescript-eslint/explicit-function-return-type": ["error"],
"@typescript-eslint/explicit-member-accessibility": [
"error",
{
accessibility: "explicit",
overrides: {
constructors: "no-public"
}
}
],
"@typescript-eslint/member-delimiter-style": ["error"],
"@typescript-eslint/no-confusing-void-expression": ["error"],
"@typescript-eslint/non-nullable-type-assertion-style": ["error"],
"@typescript-eslint/switch-exhaustiveness-check": ["error"]
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
]
};