-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.formatting.mjs
More file actions
157 lines (156 loc) · 6.71 KB
/
eslint.formatting.mjs
File metadata and controls
157 lines (156 loc) · 6.71 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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
import stylistic from "@stylistic/eslint-plugin";
export default {
files: [ "src/**/*.ts" ],
plugins: {
"@stylistic": stylistic
},
rules: {
"array-bracket-spacing": "off",
"@stylistic/array-bracket-spacing": [ "error", "always" ],
"array-element-newline": "off",
"@stylistic/array-element-newline": [ "error", "consistent" ],
"arrow-parens": "off",
"@stylistic/arrow-parens": [ "error", "always" ],
"arrow-spacing": "off",
"@stylistic/arrow-spacing": [ "error", { "before": true, "after": true } ],
"block-spacing": "off",
"@stylistic/block-spacing": [ "error", "always" ],
"brace-style": "off",
"@stylistic/brace-style": [ "error", "1tbs", { "allowSingleLine": true } ],
"comma-dangle": "off",
"@stylistic/comma-dangle": [ "error", "never" ],
"comma-spacing": "off",
"@stylistic/comma-spacing": [ "error", { "before": false, "after": true } ],
"comma-style": "off",
"@stylistic/comma-style": [ "error", "last" ],
"computed-property-spacing": "off",
"@stylistic/computed-property-spacing": [ "error", "never" ],
"dot-location": "off",
"@stylistic/dot-location": [ "error", "property" ],
"eol-last": "off",
"@stylistic/eol-last": [ "error", "always" ],
"function-call-argument-newline": "off",
"@stylistic/function-call-argument-newline": [ "error", "consistent" ],
"func-call-spacing": "off",
"@stylistic/function-call-spacing": [ "error", "never" ],
"function-paren-newline": "off",
"@stylistic/function-paren-newline": [ "error", "consistent" ],
"generator-star-spacing": "off",
"@stylistic/generator-star-spacing": [ "error", "after" ],
"indent": "off",
"@stylistic/indent": [ "error", 4 ],
"key-spacing": "off",
"@stylistic/key-spacing": [ "error", { "beforeColon": false, "afterColon": true, "mode": "strict" } ],
"keyword-spacing": "off",
"@stylistic/keyword-spacing": [ "error", { "before": true, "after": true } ],
"linebreak-style": "off",
"@stylistic/linebreak-style": [ "error", "unix" ],
"lines-around-comment": "off",
"@stylistic/lines-around-comment": [ "error", {
"beforeBlockComment": true,
"afterBlockComment": false,
"beforeLineComment": true,
"afterLineComment": false,
"allowBlockStart": true,
"allowBlockEnd": true,
"allowClassStart": true,
"allowClassEnd": true
} ],
"max-len": "off",
"@stylistic/max-len": [ "error", {
"code": 120,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
} ],
"@stylistic/member-delimiter-style": [ "error", {
"multiline": {
"delimiter": "comma",
"requireLast": false
},
"singleline": {
"delimiter": "comma",
"requireLast": false
},
"multilineDetection": "brackets"
} ],
"multiline-ternary": "off",
"@stylistic/multiline-ternary": [ "error", "always-multiline" ],
"new-parens": "off",
"@stylistic/new-parens": [ "error", "always" ],
"newline-per-chained-call": "off",
"@stylistic/newline-per-chained-call": [ "error", { "ignoreChainWithDepth": 2 } ],
"no-extra-semi": "off",
"@stylistic/no-extra-semi": "error",
"no-floating-decimal": "off",
"@stylistic/no-floating-decimal": "error",
"no-mixed-operators": "off",
"@stylistic/no-mixed-operators": "error",
"no-mixed-spaces-and-tabs": "off",
"@stylistic/no-mixed-spaces-and-tabs": "error",
"no-multiple-empty-lines": "off",
"@stylistic/no-multiple-empty-lines": [ "error", { "max": 2 } ],
"no-trailing-spaces": "off",
"@stylistic/no-trailing-spaces": [ "error", {
"skipBlankLines": false,
"ignoreComments": false
} ],
"no-whitespace-before-property": "off",
"@stylistic/no-whitespace-before-property": "error",
"nonblock-statement-body-position": "off",
"@stylistic/nonblock-statement-body-position": [ "error", "beside" ],
"object-curly-newline": "off",
"@stylistic/object-curly-newline": [ "error", { "consistent": true } ],
"object-curly-spacing": "off",
"@stylistic/object-curly-spacing": [ "error", "always" ],
"operator-linebreak": "off",
"@stylistic/operator-linebreak": [ "error", "before" ],
"quote-props": "off",
"@stylistic/quote-props": [ "error", "as-needed" ],
"quotes": "off",
"@stylistic/quotes": [ "error", "double" ],
"rest-spread-spacing": "off",
"@stylistic/rest-spread-spacing": [ "error", "never" ],
"semi": "off",
"@stylistic/semi": [ "error", "always" ],
"semi-spacing": "off",
"@stylistic/semi-spacing": "error",
"semi-style": "off",
"@stylistic/semi-style": [ "error", "last" ],
"space-before-blocks": "off",
"@stylistic/space-before-blocks": "error",
"space-before-function-paren": "off",
"@stylistic/space-before-function-paren": [ "error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
} ],
"space-in-parens": "off",
"@stylistic/space-in-parens": [ "error", "never" ],
"space-infix-ops": "off",
"@stylistic/space-infix-ops": "error",
"space-unary-ops": "off",
"@stylistic/space-unary-ops": [ "error", {
"words": true,
"nonwords": false
} ],
"spaced-comment": "off",
"@stylistic/spaced-comment": [ "error", "always" ],
"switch-colon-spacing": "off",
"@stylistic/switch-colon-spacing": [ "error", { "before": false, "after": true } ],
"template-curly-spacing": "off",
"@stylistic/template-curly-spacing": [ "error", "never" ],
"template-tag-spacing": "off",
"@stylistic/template-tag-spacing": [ "error", "never" ],
"@stylistic/type-annotation-spacing": [ "error", { "before": false, "after": true } ],
"@stylistic/type-generic-spacing": "error",
"@stylistic/type-named-tuple-spacing": "error",
"wrap-iife": "off",
"@stylistic/wrap-iife": [ "error", "inside", { "functionPrototypeMethods": true } ],
"wrap-regex": "off",
"@stylistic/wrap-regex": "off",
"yield-star-spacing": "off",
"@stylistic/yield-star-spacing": [ "error", "after" ]
}
};