-
Notifications
You must be signed in to change notification settings - Fork 16
/
.eslintrc.json
43 lines (43 loc) · 1.22 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended", // https://eslint.org/docs/latest/rules/
"plugin:@typescript-eslint/recommended", // https://typescript-eslint.io/rules/
"prettier"
],
"rules": {
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "classProperty",
"modifiers": ["public", "static", "readonly"],
"format": ["UPPER_CASE"]
},
{
"selector": "typeAlias",
"format": ["PascalCase"]
},
{
"selector": ["variable", "function", "parameter", "method", "property"],
"format": ["camelCase"],
"leadingUnderscore": "allow"
},
{
"selector": ["class"],
"format": ["PascalCase"]
}
],
"@typescript-eslint/semi": "error",
"curly": "error",
"eqeqeq": "error",
"no-throw-literal": "error"
}
}