-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
41 lines (41 loc) · 1.09 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
{
"env": {
"commonjs": true,
"es2021": true
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"overrides": [],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest"
},
"plugins": ["@typescript-eslint"],
"rules": {
"indent": ["warn", 2],
"linebreak-style": ["error", "windows"],
"quotes": ["error", "double"],
"semi": ["error", "always"],
"no-extra-parens": "warn",
"default-case": "warn",
"eqeqeq": "warn",
"no-empty-function": "error",
"no-eq-null": "error",
"no-new-func": "error",
"no-useless-concat": "warn",
"array-bracket-spacing": ["warn", "never"],
"comma-dangle": "warn",
"eol-last": "error",
"multiline-comment-style": ["warn", "starred-block"],
"no-multiple-empty-lines": "error",
"no-trailing-spaces": "error",
"lines-between-class-members": [
"error",
"always",
{ "exceptAfterSingleLine": true }
],
"lines-around-comment": [
"error",
{ "beforeBlockComment": false, "allowObjectStart": true }
]
}
}