Skip to content

Commit 9dc196e

Browse files
Xunnamiusljharb
authored andcommitted
refactor(src): undo pathGroupsExcludedImportTypes schema tightening; undo cosmetic changes
1 parent 142cf52 commit 9dc196e

File tree

1 file changed

+19
-23
lines changed

1 file changed

+19
-23
lines changed

src/rules/order.js

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -858,12 +858,9 @@ module.exports = {
858858
properties: {
859859
groups: {
860860
type: 'array',
861-
// Verified manually in the convertGroupsToRanks function
862861
},
863862
pathGroupsExcludedImportTypes: {
864863
type: 'array',
865-
uniqueItems: true,
866-
items: { enum: types },
867864
},
868865
distinctGroup: {
869866
type: 'boolean',
@@ -921,28 +918,27 @@ module.exports = {
921918
},
922919
named: {
923920
default: false,
924-
oneOf: [
925-
{ type: 'boolean' },
926-
{
927-
type: 'object',
928-
properties: {
929-
enabled: { type: 'boolean' },
930-
import: { type: 'boolean' },
931-
export: { type: 'boolean' },
932-
require: { type: 'boolean' },
933-
cjsExports: { type: 'boolean' },
934-
types: {
935-
type: 'string',
936-
enum: [
937-
'mixed',
938-
'types-first',
939-
'types-last',
940-
],
941-
},
921+
oneOf: [{
922+
type: 'boolean',
923+
}, {
924+
type: 'object',
925+
properties: {
926+
enabled: { type: 'boolean' },
927+
import: { type: 'boolean' },
928+
export: { type: 'boolean' },
929+
require: { type: 'boolean' },
930+
cjsExports: { type: 'boolean' },
931+
types: {
932+
type: 'string',
933+
enum: [
934+
'mixed',
935+
'types-first',
936+
'types-last',
937+
],
942938
},
943-
additionalProperties: false,
944939
},
945-
],
940+
additionalProperties: false,
941+
}],
946942
},
947943
alphabetize: {
948944
type: 'object',

0 commit comments

Comments
 (0)