eslint-plugin-perfectionist 4.12.0 → 4.12.2
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
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',
|
|
@@ -442,9 +419,32 @@ const sortImports = createEslintRule.createEslintRule({
|
|
|
442
419
|
maxLineLength: ['type'],
|
|
443
420
|
},
|
|
444
421
|
additionalProperties: false,
|
|
445
|
-
id: 'sort-imports',
|
|
446
422
|
type: 'object',
|
|
447
423
|
},
|
|
424
|
+
definitions: {
|
|
425
|
+
'max-line-length-requires-line-length-type': {
|
|
426
|
+
anyOf: [
|
|
427
|
+
{
|
|
428
|
+
not: {
|
|
429
|
+
required: ['maxLineLength'],
|
|
430
|
+
type: 'object',
|
|
431
|
+
},
|
|
432
|
+
type: 'object',
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
$ref: '#/definitions/is-line-length',
|
|
436
|
+
},
|
|
437
|
+
],
|
|
438
|
+
},
|
|
439
|
+
'is-line-length': {
|
|
440
|
+
properties: {
|
|
441
|
+
type: { enum: ['line-length'], type: 'string' },
|
|
442
|
+
},
|
|
443
|
+
required: ['type'],
|
|
444
|
+
type: 'object',
|
|
445
|
+
},
|
|
446
|
+
},
|
|
447
|
+
id: 'sort-imports',
|
|
448
448
|
uniqueItems: true,
|
|
449
449
|
type: 'array',
|
|
450
450
|
},
|
|
@@ -35,7 +35,6 @@ let isPartitionComment = ({ partitionByComment, comment }) => {
|
|
|
35
35
|
relevantPartitionByComment = partitionByComment.line
|
|
36
36
|
}
|
|
37
37
|
return (
|
|
38
|
-
// eslint-disable-next-line no-undefined
|
|
39
38
|
relevantPartitionByComment !== void 0 &&
|
|
40
39
|
isTrimmedCommentPartitionComment({
|
|
41
40
|
partitionByComment: relevantPartitionByComment,
|