@croct/eslint-plugin 0.3.0 → 0.4.0
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/configs/index.d.ts +5 -0
- package/configs/javascript.d.ts +2 -0
- package/configs/javascript.js +7 -2
- package/configs/react.d.ts +1 -0
- package/configs/react.js +4 -0
- package/configs/typescript.d.ts +2 -0
- package/configs/typescript.js +1 -0
- package/index.d.ts +5 -0
- package/package.json +1 -1
package/configs/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export declare const configs: {
|
|
|
19
19
|
'@croct/jsx-attribute-spacing': string;
|
|
20
20
|
'react/jsx-wrap-multilines': string;
|
|
21
21
|
'react/display-name': string;
|
|
22
|
+
'jsx-quotes': string[];
|
|
22
23
|
'react/jsx-newline': (string | {
|
|
23
24
|
prevent: boolean;
|
|
24
25
|
})[];
|
|
@@ -89,6 +90,7 @@ export declare const configs: {
|
|
|
89
90
|
extends: string[];
|
|
90
91
|
parser: string;
|
|
91
92
|
rules: {
|
|
93
|
+
'import/export': string;
|
|
92
94
|
'@typescript-eslint/array-type': (string | {
|
|
93
95
|
default: string;
|
|
94
96
|
})[];
|
|
@@ -162,6 +164,7 @@ export declare const configs: {
|
|
|
162
164
|
plugins: string[];
|
|
163
165
|
rules: {
|
|
164
166
|
'no-new-object': string;
|
|
167
|
+
'import/export'?: undefined;
|
|
165
168
|
'@typescript-eslint/array-type'?: undefined;
|
|
166
169
|
'@typescript-eslint/prefer-as-const'?: undefined;
|
|
167
170
|
'@typescript-eslint/adjacent-overload-signatures'?: undefined;
|
|
@@ -301,6 +304,8 @@ export declare const configs: {
|
|
|
301
304
|
'no-useless-escape': string;
|
|
302
305
|
'newline-destructuring/newline': (string | {
|
|
303
306
|
maxLength: number;
|
|
307
|
+
itemsWithRest: number;
|
|
308
|
+
items: number;
|
|
304
309
|
})[];
|
|
305
310
|
};
|
|
306
311
|
overrides: {
|
package/configs/javascript.d.ts
CHANGED
package/configs/javascript.js
CHANGED
|
@@ -216,9 +216,14 @@ exports.javascript = {
|
|
|
216
216
|
},
|
|
217
217
|
],
|
|
218
218
|
'no-useless-escape': 'error',
|
|
219
|
-
'newline-destructuring/newline': [
|
|
219
|
+
'newline-destructuring/newline': [
|
|
220
|
+
'error',
|
|
221
|
+
{
|
|
220
222
|
maxLength: 100,
|
|
221
|
-
|
|
223
|
+
itemsWithRest: Infinity,
|
|
224
|
+
items: Infinity,
|
|
225
|
+
},
|
|
226
|
+
],
|
|
222
227
|
},
|
|
223
228
|
overrides: [
|
|
224
229
|
{
|
package/configs/react.d.ts
CHANGED
package/configs/react.js
CHANGED
package/configs/typescript.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export declare const typescript: {
|
|
|
6
6
|
extends: string[];
|
|
7
7
|
parser: string;
|
|
8
8
|
rules: {
|
|
9
|
+
'import/export': string;
|
|
9
10
|
'@typescript-eslint/array-type': (string | {
|
|
10
11
|
default: string;
|
|
11
12
|
})[];
|
|
@@ -79,6 +80,7 @@ export declare const typescript: {
|
|
|
79
80
|
plugins: string[];
|
|
80
81
|
rules: {
|
|
81
82
|
'no-new-object': string;
|
|
83
|
+
'import/export'?: undefined;
|
|
82
84
|
'@typescript-eslint/array-type'?: undefined;
|
|
83
85
|
'@typescript-eslint/prefer-as-const'?: undefined;
|
|
84
86
|
'@typescript-eslint/adjacent-overload-signatures'?: undefined;
|
package/configs/typescript.js
CHANGED
package/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ declare const configuration: {
|
|
|
48
48
|
'@croct/jsx-attribute-spacing': string;
|
|
49
49
|
'react/jsx-wrap-multilines': string;
|
|
50
50
|
'react/display-name': string;
|
|
51
|
+
'jsx-quotes': string[];
|
|
51
52
|
'react/jsx-newline': (string | {
|
|
52
53
|
prevent: boolean;
|
|
53
54
|
})[];
|
|
@@ -118,6 +119,7 @@ declare const configuration: {
|
|
|
118
119
|
extends: string[];
|
|
119
120
|
parser: string;
|
|
120
121
|
rules: {
|
|
122
|
+
'import/export': string;
|
|
121
123
|
'@typescript-eslint/array-type': (string | {
|
|
122
124
|
default: string;
|
|
123
125
|
})[];
|
|
@@ -191,6 +193,7 @@ declare const configuration: {
|
|
|
191
193
|
plugins: string[];
|
|
192
194
|
rules: {
|
|
193
195
|
'no-new-object': string;
|
|
196
|
+
'import/export'?: undefined;
|
|
194
197
|
'@typescript-eslint/array-type'?: undefined;
|
|
195
198
|
'@typescript-eslint/prefer-as-const'?: undefined;
|
|
196
199
|
'@typescript-eslint/adjacent-overload-signatures'?: undefined;
|
|
@@ -330,6 +333,8 @@ declare const configuration: {
|
|
|
330
333
|
'no-useless-escape': string;
|
|
331
334
|
'newline-destructuring/newline': (string | {
|
|
332
335
|
maxLength: number;
|
|
336
|
+
itemsWithRest: number;
|
|
337
|
+
items: number;
|
|
333
338
|
})[];
|
|
334
339
|
};
|
|
335
340
|
overrides: {
|