-
Notifications
You must be signed in to change notification settings - Fork 17
/
.eslintrc.js
46 lines (46 loc) · 1.9 KB
/
.eslintrc.js
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
module.exports = {
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"env": {
"node": true,
"es6": true,
},
"rules": {
"array-bracket-spacing": "warn",
"arrow-spacing": "warn",
"block-spacing": "warn",
"brace-style": "warn",
"comma-dangle": ["warn", "always-multiline"],
"comma-spacing": "warn",
"computed-property-spacing": "warn",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-member-accessibility": "warn",
"func-call-spacing": "warn",
"generator-star-spacing": ["warn", "after"],
// https://github.com/typescript-eslint/typescript-eslint/blob/v1.6.0/packages/eslint-plugin/docs/rules/indent.md
"indent": "off",
"@typescript-eslint/indent": ["warn", 4],
"key-spacing": "warn",
"keyword-spacing": "warn",
"@typescript-eslint/member-delimiter-style": ["warn", { "multiline": { "delimiter": "none" } }],
"@typescript-eslint/member-ordering": "warn",
"@typescript-eslint/no-empty-interface": "off",
"no-multi-spaces": "warn",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-use-before-define": ["error", "nofunc"],
"@typescript-eslint/no-var-requires": "off",
"no-whitespace-before-property": "warn",
"object-curly-spacing": ["warn", "always"],
"rest-spread-spacing": "warn",
"semi": ["warn", "always"],
"semi-spacing": "warn",
"space-before-blocks": "warn",
"space-before-function-paren": ["warn", "never"],
"space-in-parens": "warn",
"space-infix-ops": "warn",
"space-unary-ops": "warn",
"switch-colon-spacing": "warn",
"template-curly-spacing": "warn",
"quotes": ["warn", "double"],
"yield-star-spacing": "warn",
},
};