Skip to content

Commit

Permalink
refactor(src): undo pathGroupsExcludedImportTypes schema tightening…
Browse files Browse the repository at this point in the history
…; undo cosmetic changes
  • Loading branch information
Xunnamius committed Feb 1, 2025
1 parent a8ab646 commit 30b4dcf
Showing 1 changed file with 19 additions and 23 deletions.
42 changes: 19 additions & 23 deletions src/rules/order.js
Original file line number Diff line number Diff line change
Expand Up @@ -858,12 +858,9 @@ module.exports = {
properties: {
groups: {
type: 'array',
// Verified manually in the convertGroupsToRanks function
},
pathGroupsExcludedImportTypes: {
type: 'array',
uniqueItems: true,
items: { enum: types },
},
distinctGroup: {
type: 'boolean',
Expand Down Expand Up @@ -921,28 +918,27 @@ module.exports = {
},
named: {
default: false,
oneOf: [
{ type: 'boolean' },
{
type: 'object',
properties: {
enabled: { type: 'boolean' },
import: { type: 'boolean' },
export: { type: 'boolean' },
require: { type: 'boolean' },
cjsExports: { type: 'boolean' },
types: {
type: 'string',
enum: [
'mixed',
'types-first',
'types-last',
],
},
oneOf: [{
type: 'boolean',
}, {
type: 'object',
properties: {
enabled: { type: 'boolean' },
import: { type: 'boolean' },
export: { type: 'boolean' },
require: { type: 'boolean' },
cjsExports: { type: 'boolean' },
types: {
type: 'string',
enum: [
'mixed',
'types-first',
'types-last',
],
},
additionalProperties: false,
},
],
additionalProperties: false,
}],
},
alphabetize: {
type: 'object',
Expand Down

0 comments on commit 30b4dcf

Please sign in to comment.