-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
67 lines (65 loc) · 2.52 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"extends": [
"eslint:recommended",
"prettier",
"plugin:jsdoc/recommended-typescript",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked"
],
"env": {
"node": true,
"browser": true,
"es6": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "latest",
"project": "./tsconfig.eslint.json"
},
"parser": "@typescript-eslint/parser",
"rules": {
"arrow-spacing": ["warn", { "before": true, "after": true }],
"comma-dangle": ["warn", "always-multiline"],
"comma-spacing": "warn",
"comma-style": "warn",
"curly": ["warn", "multi-line"],
"dot-location": ["warn", "property"],
"handle-callback-err": "off",
"indent": ["warn", 4, { "SwitchCase": 1 }],
"keyword-spacing": "warn",
"max-nested-callbacks": ["warn", { "max": 4 }],
"max-statements-per-line": ["warn", { "max": 2 }],
"no-console": "off",
"no-dupe-class-members": "off",
"no-empty-function": "warn",
"no-floating-decimal": "warn",
"no-lonely-if": "warn",
"no-multi-spaces": "warn",
"no-multiple-empty-lines": ["warn", { "max": 2, "maxEOF": 1, "maxBOF": 0 }],
"no-shadow": ["warn", { "allow": ["err", "resolve", "reject"] }],
"no-trailing-spaces": ["warn"],
"no-var": "warn",
"no-unused-vars": "off",
"prefer-const": "warn",
"quotes": ["warn", "double", { "allowTemplateLiterals": true }],
"semi": ["warn", "always"],
"space-before-blocks": "warn",
"space-before-function-paren": ["warn", "always"],
"space-in-parens": "warn",
"space-infix-ops": "warn",
"space-unary-ops": "warn",
"spaced-comment": "warn",
"yoda": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/member-delimiter-style": "warn",
"@typescript-eslint/explicit-function-return-type": "warn",
"@typescript-eslint/restrict-template-expressions": ["warn", { "allowNumber": true, "allowBoolean": true }],
"@typescript-eslint/consistent-type-exports": "warn",
"@typescript-eslint/consistent-type-imports": "warn",
"jsdoc/require-param-type": "off",
"jsdoc/require-returns-type": "off",
"jsdoc/require-file-overview": 1
}
}