This repository was archived by the owner on Sep 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.eslintrc
More file actions
48 lines (48 loc) · 1.36 KB
/
.eslintrc
File metadata and controls
48 lines (48 loc) · 1.36 KB
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
// References for the rules can be found at https://eslint.org/docs/rules/
{
"env": {
"browser": true,
"es2020": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"rules": {
"indent": ["warn", 4, {
"SwitchCase": 1
}],
"linebreak-style": ["warn", "windows"],
"quotes": ["warn", "double", {
"avoidEscape": true
}],
"semi": ["error", "always"],
"semi-style": ["error", "last"],
"semi-spacing": ["error", {
"before": false,
"after": true
}],
"comma-dangle": ["error", "never"],
"comma-style": ["error", "last"],
"comma-spacing": ["error", {
"before": false,
"after": true
}],
"line-comment-position": ["error", "above"],
"multiline-comment-style": ["warn", "separate-lines"],
"block-spacing": ["error", "always"],
"key-spacing": ["error", {
"beforeColon": false,
"afterColon": true,
"mode": "strict"
}],
"func-style": ["warn", "expression"],
"no-lonely-if": ["warn"]
}
}