-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
104 lines (103 loc) · 4.18 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"env": {
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@stylistic/recommended-extends"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "@stylistic"],
"rules": {
"@stylistic/array-bracket-newline": ["warn", "consistent"],
"@stylistic/array-element-newline": ["warn", "consistent"],
"@stylistic/arrow-parens": ["warn", "as-needed"],
"@stylistic/brace-style": ["warn", "1tbs", {"allowSingleLine": true}],
"@stylistic/comma-dangle": ["warn", "never"],
"@stylistic/dot-location": ["warn", "property"],
"@stylistic/eol-last": ["warn", "always"],
"@stylistic/function-call-argument-newline": ["warn", "consistent"],
"@stylistic/function-paren-newline": ["warn", "multiline-arguments"],
"@stylistic/indent": ["warn", 2],
"@stylistic/indent-binary-ops": ["warn", 2],
"@stylistic/linebreak-style": ["warn", "unix"],
"@stylistic/lines-around-comment": ["warn", {"beforeBlockComment": false}],
"@stylistic/max-len": ["warn", {"code": 120, "tabWidth": 2}],
"@stylistic/member-delimiter-style": [
"warn",
{
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@stylistic/newline-per-chained-call": ["warn", {"ignoreChainWithDepth": 5}],
"@stylistic/object-property-newline": ["warn", {"allowAllPropertiesOnSameLine": true}],
"@stylistic/operator-linebreak": ["warn", "after", {"overrides": {"?": "before", ":": "before"}}],
"@stylistic/quotes": ["warn", "double", {"avoidEscape": true, "allowTemplateLiterals": true}],
"@stylistic/semi": ["warn", "always"],
"@stylistic/spaced-comment": ["warn", "always"],
"@stylistic/array-bracket-spacing": "warn",
"@stylistic/arrow-spacing": "warn",
"@stylistic/block-spacing": "warn",
"@stylistic/comma-spacing": "warn",
"@stylistic/comma-style": "warn",
"@stylistic/computed-property-spacing": "warn",
"@stylistic/func-call-spacing": "warn",
"@stylistic/function-call-spacing": "warn",
"@stylistic/generator-star-spacing": "warn",
"@stylistic/implicit-arrow-linebreak": "warn",
"@stylistic/key-spacing": "warn",
"@stylistic/keyword-spacing": "warn",
"@stylistic/lines-between-class-members": "warn",
"@stylistic/max-statements-per-line": "warn",
"@stylistic/multiline-ternary": "warn",
"@stylistic/new-parens": "warn",
"@stylistic/no-confusing-arrow": "warn",
"@stylistic/no-extra-parens": "warn",
"@stylistic/no-extra-semi": "warn",
"@stylistic/no-floating-decimal": "warn",
"@stylistic/no-mixed-operators": "warn",
"@stylistic/no-mixed-spaces-and-tabs": "warn",
"@stylistic/no-multi-spaces": "warn",
"@stylistic/no-multiple-empty-lines": "warn",
"@stylistic/no-tabs": "warn",
"@stylistic/no-trailing-spaces": "warn",
"@stylistic/no-whitespace-before-property": "warn",
"@stylistic/nonblock-statement-body-position": "warn",
"@stylistic/object-curly-newline": "warn",
"@stylistic/object-curly-spacing": "warn",
"@stylistic/one-var-declaration-per-line": "warn",
"@stylistic/padded-blocks": "warn",
"@stylistic/padding-line-between-statements": "warn",
"@stylistic/quote-props": "warn",
"@stylistic/rest-spread-spacing": "warn",
"@stylistic/semi-spacing": "warn",
"@stylistic/semi-style": "warn",
"@stylistic/space-before-blocks": "warn",
"@stylistic/space-before-function-paren": "warn",
"@stylistic/space-in-parens": "warn",
"@stylistic/space-infix-ops": "warn",
"@stylistic/space-unary-ops": "warn",
"@stylistic/switch-colon-spacing": "warn",
"@stylistic/template-curly-spacing": "warn",
"@stylistic/template-tag-spacing": "warn",
"@stylistic/type-annotation-spacing": "warn",
"@stylistic/type-generic-spacing": "warn",
"@stylistic/type-named-tuple-spacing": "warn",
"@stylistic/wrap-iife": "warn",
"@stylistic/wrap-regex": "warn",
"@stylistic/yield-star-spacing": "warn"
}
}