-
Notifications
You must be signed in to change notification settings - Fork 11
/
.eslintrc
28 lines (28 loc) · 951 Bytes
/
.eslintrc
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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/camelcase": "off",
"eqeqeq": "error",
"no-else-return": "error",
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": ["error", { "before": false, "after": true }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"generator-star-spacing": ["error", {"before": true, "after": true}],
"nonblock-statement-body-position": ["error", "beside"],
"space-before-blocks": ["error", "always"],
"arrow-spacing": ["error", { "before": true, "after": true }],
"no-lonely-if": "error",
"curly": ["error", "multi-line"],
"space-infix-ops": ["error", { "int32Hint": true }],
"prefer-const": "error"
}
}