@newsteam/eslint-config 0.0.203 → 0.0.204
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/plugins/import/style.js +1 -3
- package/dist/cjs/plugins/react/base.js +1 -1
- package/dist/cjs/plugins/stylistic.d.ts +3 -225
- package/dist/cjs/plugins/stylistic.js +781 -762
- package/dist/cjs/plugins/typescript.d.ts +3 -275
- package/dist/cjs/plugins/typescript.js +8 -1
- package/dist/cjs/plugins/unicorn.js +765 -764
- package/dist/cjs/rules.d.ts +1 -4
- package/dist/cjs/rules.js +6 -9
- package/dist/cjs/types/rules.d.ts +4 -0
- package/dist/cjs/types/rules.js +2 -0
- package/package.json +13 -13
|
@@ -95,11 +95,9 @@ module.exports = {
|
|
|
95
95
|
/*
|
|
96
96
|
* Forbid default exports
|
|
97
97
|
*
|
|
98
|
-
* Off for now because default exports are fine
|
|
99
|
-
*
|
|
100
98
|
* https://github.com/benmosher/eslint-plugin-import/blob/HEAD/docs/rules/no-default-export.md
|
|
101
99
|
*/
|
|
102
|
-
"import/no-default-export": "
|
|
100
|
+
"import/no-default-export": "error",
|
|
103
101
|
/*
|
|
104
102
|
* Report repeated import of the same module in multiple places
|
|
105
103
|
*
|
|
@@ -332,7 +332,7 @@ module.exports = {
|
|
|
332
332
|
*
|
|
333
333
|
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/react-in-jsx-scope.md
|
|
334
334
|
*/
|
|
335
|
-
"react/react-in-jsx-scope": "
|
|
335
|
+
"react/react-in-jsx-scope": "off",
|
|
336
336
|
/*
|
|
337
337
|
* Enforce a defaultProps definition for every prop that is not a required prop
|
|
338
338
|
*
|
|
@@ -1,229 +1,7 @@
|
|
|
1
|
+
import type { RuleOptions } from "@stylistic/eslint-plugin";
|
|
2
|
+
import type { Rules } from "../types/rules";
|
|
1
3
|
declare const _default: {
|
|
2
4
|
plugins: string[];
|
|
3
|
-
rules:
|
|
4
|
-
"@stylistic/array-bracket-newline": string[];
|
|
5
|
-
"@stylistic/array-bracket-spacing": string;
|
|
6
|
-
"@stylistic/array-element-newline": string[];
|
|
7
|
-
"@stylistic/arrow-parens": string;
|
|
8
|
-
"@stylistic/arrow-spacing": string;
|
|
9
|
-
"@stylistic/block-spacing": string;
|
|
10
|
-
"@stylistic/brace-style": string;
|
|
11
|
-
"@stylistic/comma-dangle": (string | {
|
|
12
|
-
arrays: string;
|
|
13
|
-
exports: string;
|
|
14
|
-
functions: string;
|
|
15
|
-
imports: string;
|
|
16
|
-
objects: string;
|
|
17
|
-
})[];
|
|
18
|
-
"@stylistic/comma-spacing": string;
|
|
19
|
-
"@stylistic/comma-style": string;
|
|
20
|
-
"@stylistic/computed-property-spacing": string;
|
|
21
|
-
"@stylistic/dot-location": string[];
|
|
22
|
-
"@stylistic/eol-last": string;
|
|
23
|
-
"@stylistic/func-call-spacing": string;
|
|
24
|
-
"@stylistic/function-call-argument-newline": string[];
|
|
25
|
-
"@stylistic/function-call-spacing": string;
|
|
26
|
-
"@stylistic/function-paren-newline": string[];
|
|
27
|
-
"@stylistic/generator-star-spacing": string;
|
|
28
|
-
"@stylistic/implicit-arrow-linebreak": string;
|
|
29
|
-
"@stylistic/indent": (string | number | {
|
|
30
|
-
MemberExpression: number;
|
|
31
|
-
SwitchCase: number;
|
|
32
|
-
})[];
|
|
33
|
-
"@stylistic/jsx-child-element-spacing": string;
|
|
34
|
-
"@stylistic/jsx-closing-bracket-location": string;
|
|
35
|
-
"@stylistic/jsx-closing-tag-location": string;
|
|
36
|
-
"@stylistic/jsx-curly-brace-presence": string;
|
|
37
|
-
"@stylistic/jsx-curly-newline": string[];
|
|
38
|
-
"@stylistic/jsx-curly-spacing": (string | {
|
|
39
|
-
children: {
|
|
40
|
-
when: string;
|
|
41
|
-
};
|
|
42
|
-
when: string;
|
|
43
|
-
})[];
|
|
44
|
-
"@stylistic/jsx-equals-spacing": string;
|
|
45
|
-
"@stylistic/jsx-first-prop-new-line": string;
|
|
46
|
-
"@stylistic/jsx-indent": string;
|
|
47
|
-
"@stylistic/jsx-indent-props": string;
|
|
48
|
-
"@stylistic/jsx-max-props-per-line": (string | {
|
|
49
|
-
maximum: number;
|
|
50
|
-
})[];
|
|
51
|
-
"@stylistic/jsx-newline": string;
|
|
52
|
-
"@stylistic/jsx-one-expression-per-line": string;
|
|
53
|
-
"@stylistic/jsx-props-no-multi-spaces": string;
|
|
54
|
-
"@stylistic/jsx-quotes": string;
|
|
55
|
-
"@stylistic/jsx-self-closing-comp": string;
|
|
56
|
-
"@stylistic/jsx-sort-props": (string | {
|
|
57
|
-
ignoreCase: boolean;
|
|
58
|
-
})[];
|
|
59
|
-
"@stylistic/jsx-tag-spacing": string;
|
|
60
|
-
"@stylistic/jsx-wrap-multilines": string;
|
|
61
|
-
"@stylistic/key-spacing": (string | {
|
|
62
|
-
afterColon: boolean;
|
|
63
|
-
beforeColon: boolean;
|
|
64
|
-
mode: string;
|
|
65
|
-
})[];
|
|
66
|
-
"@stylistic/keyword-spacing": (string | {
|
|
67
|
-
after: boolean;
|
|
68
|
-
before: boolean;
|
|
69
|
-
overrides: {
|
|
70
|
-
case: {
|
|
71
|
-
before: boolean;
|
|
72
|
-
};
|
|
73
|
-
catch: {
|
|
74
|
-
after: boolean;
|
|
75
|
-
before: boolean;
|
|
76
|
-
};
|
|
77
|
-
class: {
|
|
78
|
-
after: boolean;
|
|
79
|
-
before: boolean;
|
|
80
|
-
};
|
|
81
|
-
const: {
|
|
82
|
-
before: boolean;
|
|
83
|
-
};
|
|
84
|
-
else: {
|
|
85
|
-
after: boolean;
|
|
86
|
-
before: boolean;
|
|
87
|
-
};
|
|
88
|
-
export: {
|
|
89
|
-
before: boolean;
|
|
90
|
-
};
|
|
91
|
-
finally: {
|
|
92
|
-
after: boolean;
|
|
93
|
-
before: boolean;
|
|
94
|
-
};
|
|
95
|
-
for: {
|
|
96
|
-
after: boolean;
|
|
97
|
-
};
|
|
98
|
-
if: {
|
|
99
|
-
after: boolean;
|
|
100
|
-
};
|
|
101
|
-
import: {
|
|
102
|
-
before: boolean;
|
|
103
|
-
};
|
|
104
|
-
let: {
|
|
105
|
-
before: boolean;
|
|
106
|
-
};
|
|
107
|
-
return: {
|
|
108
|
-
before: boolean;
|
|
109
|
-
};
|
|
110
|
-
switch: {
|
|
111
|
-
after: boolean;
|
|
112
|
-
};
|
|
113
|
-
this: {
|
|
114
|
-
after: boolean;
|
|
115
|
-
};
|
|
116
|
-
try: {
|
|
117
|
-
after: boolean;
|
|
118
|
-
};
|
|
119
|
-
type: {
|
|
120
|
-
after: boolean;
|
|
121
|
-
before: boolean;
|
|
122
|
-
};
|
|
123
|
-
while: {
|
|
124
|
-
after: boolean;
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
})[];
|
|
128
|
-
"@stylistic/linebreak-style": string;
|
|
129
|
-
"@stylistic/lines-around-comment": string;
|
|
130
|
-
"@stylistic/lines-between-class-members": (string | {
|
|
131
|
-
exceptAfterSingleLine: boolean;
|
|
132
|
-
})[];
|
|
133
|
-
"@stylistic/max-len": (string | {
|
|
134
|
-
code: number;
|
|
135
|
-
ignoreComments: boolean;
|
|
136
|
-
})[];
|
|
137
|
-
"@stylistic/max-statements-per-line": (string | {
|
|
138
|
-
max: number;
|
|
139
|
-
})[];
|
|
140
|
-
"@stylistic/member-delimiter-style": string;
|
|
141
|
-
"@stylistic/multiline-ternary": string[];
|
|
142
|
-
"@stylistic/new-parens": string;
|
|
143
|
-
"@stylistic/newline-per-chained-call": (string | {
|
|
144
|
-
ignoreChainWithDepth: number;
|
|
145
|
-
})[];
|
|
146
|
-
"@stylistic/no-confusing-arrow": string;
|
|
147
|
-
"@stylistic/no-extra-parens": (string | {
|
|
148
|
-
ignoreJSX: string;
|
|
149
|
-
})[];
|
|
150
|
-
"@stylistic/no-extra-semi": string;
|
|
151
|
-
"@stylistic/no-floating-decimal": string;
|
|
152
|
-
"@stylistic/no-mixed-operators": string;
|
|
153
|
-
"@stylistic/no-mixed-spaces-and-tabs": string;
|
|
154
|
-
"@stylistic/no-multi-spaces": string;
|
|
155
|
-
"@stylistic/no-multiple-empty-lines": string;
|
|
156
|
-
"@stylistic/no-tabs": string;
|
|
157
|
-
"@stylistic/no-trailing-spaces": string;
|
|
158
|
-
"@stylistic/no-whitespace-before-property": string;
|
|
159
|
-
"@stylistic/nonblock-statement-body-position": string;
|
|
160
|
-
"@stylistic/object-curly-newline": (string | {
|
|
161
|
-
ExportDeclaration: {
|
|
162
|
-
consistent: boolean;
|
|
163
|
-
minProperties: number;
|
|
164
|
-
multiline: boolean;
|
|
165
|
-
};
|
|
166
|
-
ImportDeclaration: {
|
|
167
|
-
consistent: boolean;
|
|
168
|
-
minProperties: number;
|
|
169
|
-
multiline: boolean;
|
|
170
|
-
};
|
|
171
|
-
ObjectExpression: {
|
|
172
|
-
consistent: boolean;
|
|
173
|
-
minProperties: number;
|
|
174
|
-
multiline: boolean;
|
|
175
|
-
};
|
|
176
|
-
ObjectPattern: {
|
|
177
|
-
consistent: boolean;
|
|
178
|
-
minProperties: number;
|
|
179
|
-
multiline: boolean;
|
|
180
|
-
};
|
|
181
|
-
})[];
|
|
182
|
-
"@stylistic/object-curly-spacing": string[];
|
|
183
|
-
"@stylistic/object-property-newline": (string | {
|
|
184
|
-
allowAllPropertiesOnSameLine: boolean;
|
|
185
|
-
})[];
|
|
186
|
-
"@stylistic/one-var-declaration-per-line": string;
|
|
187
|
-
"@stylistic/operator-linebreak": string;
|
|
188
|
-
"@stylistic/padded-blocks": (string | {
|
|
189
|
-
classes: string;
|
|
190
|
-
switches: string;
|
|
191
|
-
})[];
|
|
192
|
-
"@stylistic/padding-line-between-statements": (string | {
|
|
193
|
-
blankLine: string;
|
|
194
|
-
next: string[];
|
|
195
|
-
prev: string[];
|
|
196
|
-
})[];
|
|
197
|
-
"@stylistic/quote-props": string[];
|
|
198
|
-
"@stylistic/quotes": string;
|
|
199
|
-
"@stylistic/rest-spread-spacing": string;
|
|
200
|
-
"@stylistic/semi": string;
|
|
201
|
-
"@stylistic/semi-spacing": string;
|
|
202
|
-
"@stylistic/semi-style": string[];
|
|
203
|
-
"@stylistic/space-before-blocks": (string | {
|
|
204
|
-
classes: string;
|
|
205
|
-
functions: string;
|
|
206
|
-
keywords: string;
|
|
207
|
-
})[];
|
|
208
|
-
"@stylistic/space-before-function-paren": (string | {
|
|
209
|
-
anonymous: string;
|
|
210
|
-
asyncArrow: string;
|
|
211
|
-
named: string;
|
|
212
|
-
})[];
|
|
213
|
-
"@stylistic/space-in-parens": string[];
|
|
214
|
-
"@stylistic/space-infix-ops": string;
|
|
215
|
-
"@stylistic/space-unary-ops": string;
|
|
216
|
-
"@stylistic/spaced-comment": string;
|
|
217
|
-
"@stylistic/switch-colon-spacing": (string | {
|
|
218
|
-
after: boolean;
|
|
219
|
-
before: boolean;
|
|
220
|
-
})[];
|
|
221
|
-
"@stylistic/template-curly-spacing": string[];
|
|
222
|
-
"@stylistic/template-tag-spacing": string;
|
|
223
|
-
"@stylistic/type-annotation-spacing": string;
|
|
224
|
-
"@stylistic/wrap-iife": string;
|
|
225
|
-
"@stylistic/wrap-regex": string;
|
|
226
|
-
"@stylistic/yield-star-spacing": string;
|
|
227
|
-
};
|
|
5
|
+
rules: Rules<RuleOptions>;
|
|
228
6
|
};
|
|
229
7
|
export = _default;
|