eslint-plugin-perfectionist 4.12.0 → 4.12.1
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/package.json.js +1 -1
- package/dist/rules/sort-imports.js +23 -23
- package/package.json +1 -1
package/dist/package.json.js
CHANGED
|
@@ -410,29 +410,6 @@ const sortImports = createEslintRule.createEslintRule({
|
|
|
410
410
|
internalPattern: commonJsonSchemas.regexJsonSchema,
|
|
411
411
|
groups: commonJsonSchemas.groupsJsonSchema,
|
|
412
412
|
},
|
|
413
|
-
definitions: {
|
|
414
|
-
'max-line-length-requires-line-length-type': {
|
|
415
|
-
anyOf: [
|
|
416
|
-
{
|
|
417
|
-
not: {
|
|
418
|
-
required: ['maxLineLength'],
|
|
419
|
-
type: 'object',
|
|
420
|
-
},
|
|
421
|
-
type: 'object',
|
|
422
|
-
},
|
|
423
|
-
{
|
|
424
|
-
$ref: '#/definitions/is-line-length',
|
|
425
|
-
},
|
|
426
|
-
],
|
|
427
|
-
},
|
|
428
|
-
'is-line-length': {
|
|
429
|
-
properties: {
|
|
430
|
-
type: { enum: ['line-length'], type: 'string' },
|
|
431
|
-
},
|
|
432
|
-
required: ['type'],
|
|
433
|
-
type: 'object',
|
|
434
|
-
},
|
|
435
|
-
},
|
|
436
413
|
allOf: [
|
|
437
414
|
{
|
|
438
415
|
$ref: '#/definitions/max-line-length-requires-line-length-type',
|
|
@@ -445,6 +422,29 @@ const sortImports = createEslintRule.createEslintRule({
|
|
|
445
422
|
id: 'sort-imports',
|
|
446
423
|
type: 'object',
|
|
447
424
|
},
|
|
425
|
+
definitions: {
|
|
426
|
+
'max-line-length-requires-line-length-type': {
|
|
427
|
+
anyOf: [
|
|
428
|
+
{
|
|
429
|
+
not: {
|
|
430
|
+
required: ['maxLineLength'],
|
|
431
|
+
type: 'object',
|
|
432
|
+
},
|
|
433
|
+
type: 'object',
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
$ref: '#/definitions/is-line-length',
|
|
437
|
+
},
|
|
438
|
+
],
|
|
439
|
+
},
|
|
440
|
+
'is-line-length': {
|
|
441
|
+
properties: {
|
|
442
|
+
type: { enum: ['line-length'], type: 'string' },
|
|
443
|
+
},
|
|
444
|
+
required: ['type'],
|
|
445
|
+
type: 'object',
|
|
446
|
+
},
|
|
447
|
+
},
|
|
448
448
|
uniqueItems: true,
|
|
449
449
|
type: 'array',
|
|
450
450
|
},
|