-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
55 lines (54 loc) · 1.85 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
{
"extends": [
"eslint:recommended",
"prettier",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"rules": {
"no-empty": "warn",
"no-var": "error",
"no-undef": "off",
"no-inner-declarations": "off",
"no-constant-condition": ["error", { "checkLoops": false }],
"prefer-const": "warn",
"no-floating-decimal": "warn",
"comma-dangle": ["warn", "always-multiline"],
"no-template-curly-in-string": "warn",
"no-alert": "warn",
"no-console": "warn",
"no-eq-null": "error",
"@typescript-eslint/no-unused-vars": "off",
"no-empty-function": "off",
"@typescript-eslint/no-empty-function": ["warn"],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/member-delimiter-style": "off",
"@typescript-eslint/array-type": ["warn", { "default": "array-simple" }],
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/consistent-type-definitions": "warn",
"@typescript-eslint/no-inferrable-types": "warn",
"@typescript-eslint/naming-convention": [
"warn",
{ "selector": "default", "format": ["camelCase"] },
{ "selector": "variable", "format": ["camelCase", "UPPER_CASE"] },
{
"selector": "parameter",
"format": ["camelCase"],
"leadingUnderscore": "allow"
},
{
"selector": "memberLike",
"modifiers": ["private"],
"format": ["camelCase"],
"leadingUnderscore": "require"
},
{ "selector": "typeLike", "format": ["PascalCase"] },
{ "selector": "enumMember", "format": ["PascalCase"] }
]
}
}