@croct/eslint-plugin 0.1.2 → 0.1.3
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 +6 -3
- package/configs/javascript.d.ts +6 -3
- package/configs/javascript.js +14 -1
- package/index.d.ts +6 -3
- package/package.json +1 -1
package/configs/index.d.ts
CHANGED
|
@@ -224,7 +224,10 @@ export declare const configs: {
|
|
|
224
224
|
'class-methods-use-this': string;
|
|
225
225
|
'consistent-return': string;
|
|
226
226
|
'default-case': string;
|
|
227
|
-
'import/extensions': string
|
|
227
|
+
'import/extensions': (string | {
|
|
228
|
+
d: string;
|
|
229
|
+
json: string;
|
|
230
|
+
})[];
|
|
228
231
|
'import/no-unresolved': string;
|
|
229
232
|
indent: (string | number | {
|
|
230
233
|
SwitchCase: number;
|
|
@@ -263,11 +266,11 @@ export declare const configs: {
|
|
|
263
266
|
} | {
|
|
264
267
|
blankLine: string;
|
|
265
268
|
prev: string[];
|
|
266
|
-
next: string;
|
|
269
|
+
next: string[];
|
|
267
270
|
} | {
|
|
268
271
|
blankLine: string;
|
|
269
272
|
prev: string[];
|
|
270
|
-
next: string
|
|
273
|
+
next: string;
|
|
271
274
|
})[];
|
|
272
275
|
};
|
|
273
276
|
overrides: {
|
package/configs/javascript.d.ts
CHANGED
|
@@ -38,7 +38,10 @@ export declare const javascript: {
|
|
|
38
38
|
'class-methods-use-this': string;
|
|
39
39
|
'consistent-return': string;
|
|
40
40
|
'default-case': string;
|
|
41
|
-
'import/extensions': string
|
|
41
|
+
'import/extensions': (string | {
|
|
42
|
+
d: string;
|
|
43
|
+
json: string;
|
|
44
|
+
})[];
|
|
42
45
|
'import/no-unresolved': string;
|
|
43
46
|
indent: (string | number | {
|
|
44
47
|
SwitchCase: number;
|
|
@@ -77,11 +80,11 @@ export declare const javascript: {
|
|
|
77
80
|
} | {
|
|
78
81
|
blankLine: string;
|
|
79
82
|
prev: string[];
|
|
80
|
-
next: string;
|
|
83
|
+
next: string[];
|
|
81
84
|
} | {
|
|
82
85
|
blankLine: string;
|
|
83
86
|
prev: string[];
|
|
84
|
-
next: string
|
|
87
|
+
next: string;
|
|
85
88
|
})[];
|
|
86
89
|
};
|
|
87
90
|
overrides: {
|
package/configs/javascript.js
CHANGED
|
@@ -77,6 +77,10 @@ exports.javascript = {
|
|
|
77
77
|
'import/extensions': [
|
|
78
78
|
'error',
|
|
79
79
|
'never',
|
|
80
|
+
{
|
|
81
|
+
d: 'always',
|
|
82
|
+
json: 'always',
|
|
83
|
+
},
|
|
80
84
|
],
|
|
81
85
|
'import/no-unresolved': 'off',
|
|
82
86
|
indent: [
|
|
@@ -144,10 +148,19 @@ exports.javascript = {
|
|
|
144
148
|
{
|
|
145
149
|
blankLine: 'always',
|
|
146
150
|
prev: '*',
|
|
151
|
+
next: [
|
|
152
|
+
'try',
|
|
153
|
+
],
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
blankLine: 'always',
|
|
157
|
+
prev: [
|
|
158
|
+
'break',
|
|
159
|
+
'return',
|
|
160
|
+
],
|
|
147
161
|
next: [
|
|
148
162
|
'case',
|
|
149
163
|
'default',
|
|
150
|
-
'try',
|
|
151
164
|
],
|
|
152
165
|
},
|
|
153
166
|
{
|
package/index.d.ts
CHANGED
|
@@ -238,7 +238,10 @@ declare const configuration: {
|
|
|
238
238
|
'class-methods-use-this': string;
|
|
239
239
|
'consistent-return': string;
|
|
240
240
|
'default-case': string;
|
|
241
|
-
'import/extensions': string
|
|
241
|
+
'import/extensions': (string | {
|
|
242
|
+
d: string;
|
|
243
|
+
json: string;
|
|
244
|
+
})[];
|
|
242
245
|
'import/no-unresolved': string;
|
|
243
246
|
indent: (string | number | {
|
|
244
247
|
SwitchCase: number;
|
|
@@ -277,11 +280,11 @@ declare const configuration: {
|
|
|
277
280
|
} | {
|
|
278
281
|
blankLine: string;
|
|
279
282
|
prev: string[];
|
|
280
|
-
next: string;
|
|
283
|
+
next: string[];
|
|
281
284
|
} | {
|
|
282
285
|
blankLine: string;
|
|
283
286
|
prev: string[];
|
|
284
|
-
next: string
|
|
287
|
+
next: string;
|
|
285
288
|
})[];
|
|
286
289
|
};
|
|
287
290
|
overrides: {
|