-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc.js
67 lines (67 loc) · 1.44 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
module.exports = {
env: {
node: true
},
parser: "@typescript-eslint/parser",
parserOptions: {
project: "tsconfig.json",
sourceType: "module"
},
plugins: ["@typescript-eslint"],
rules: {
"@typescript-eslint/member-delimiter-style": [
"error",
{
multiline: {
delimiter: "none",
requireLast: true
},
singleline: {
delimiter: "semi",
requireLast: false
}
}
],
"@typescript-eslint/semi": ["error", "never"],
"import/order": "off",
"no-console": "off",
"@typescript-eslint/naming-convention": [
"error",
{
selector: "default",
format: ["camelCase", "PascalCase"],
leadingUnderscore: "forbid"
},
{
selector: "class",
format: ["PascalCase"]
},
{
selector: "property",
modifiers: ["readonly"],
format: ["camelCase", "UPPER_CASE"]
},
{
selector: "memberLike",
modifiers: ["protected"],
format: ["camelCase"],
leadingUnderscore: "require"
},
{
selector: "memberLike",
modifiers: ["private"],
format: ["camelCase"],
leadingUnderscore: "require"
},
{
selector: "variable",
format: ["camelCase", "UPPER_CASE"]
},
{
selector: "interface",
format: ["PascalCase"],
prefix: ["I"]
}
]
}
};