-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc
65 lines (65 loc) · 1.5 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
64
65
{
"ignorePatterns": ["lib/*"],
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"env": {
"browser": true,
"es2021": true,
"jest": true
},
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"no-console": "warn",
"no-return-await": "error",
"no-empty-function": "error",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/array-type": "error",
"@typescript-eslint/no-explicit-any": [
"error",
{
"ignoreRestArgs": true
}
],
"@typescript-eslint/typedef": [
"error",
{
"parameter": true,
"propertyDeclaration": true
}
],
"@typescript-eslint/consistent-indexed-object-style": ["error", "record"],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "variable",
"format": ["camelCase", "PascalCase"],
"types": ["function"]
},
{
"selector": "variable",
"format": ["camelCase", "UPPER_CASE"],
"types": ["string", "number", "boolean", "array"]
},
{
"selector": "function",
"format": ["camelCase"]
},
{
"selector": ["typeLike"],
"format": ["PascalCase"]
},
{
"selector": "interface",
"format": ["PascalCase"]
}
]
}
}