-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
65 lines (65 loc) · 1.57 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"project": ["tsconfig.json"],
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/semi": "warn",
"curly": "off",
"eqeqeq": "warn",
"no-throw-literal": "warn",
"semi": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "variableLike",
"format": ["camelCase", "UPPER_CASE", "snake_case"],
"leadingUnderscore": "allow"
},
{
"selector": "variable",
"types": ["function"],
"format": ["camelCase"]
},
{
"selector": "variable",
"types": ["boolean"],
"format": ["PascalCase"],
"prefix": ["is", "should", "has", "can", "did", "will"]
},
{
"selector": "property",
"types": ["boolean"],
"format": ["PascalCase"],
"prefix": ["is", "should", "has", "can", "did", "will"]
},
{
"selector": "typeLike",
"format": ["PascalCase"]
},
{
"selector": "variable",
"types": ["boolean", "string", "string", "number", "array"],
"modifiers": ["exported"],
"format": ["UPPER_CASE"]
},
{
"selector": ["enumMember"],
"format": ["UPPER_CASE"]
},
{
"selector": "enum",
"format": ["camelCase"],
"custom": {
"regex": "^e[A-Z]",
"match": true
}
}
]
},
"ignorePatterns": ["out", "dist", "**/*.d.ts"]
}