Skip to content

Commit

Permalink
fix(src): codify dependency between "newlines-between-types"/"newline…
Browse files Browse the repository at this point in the history
…s-between" and "consolidateIslands" in rule schema
  • Loading branch information
Xunnamius committed Jan 26, 2025
1 parent dece12e commit 3c4c3f2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/rules/order.js
Original file line number Diff line number Diff line change
Expand Up @@ -971,6 +971,18 @@ module.exports = {
},
required: ['sortTypesGroup'],
},
consolidateIslands: {
anyOf: [{
properties: {
'newlines-between': { enum: ['always-and-inside-groups'] },
},
required: ['newlines-between'],
}, {
properties: {
'newlines-between-types': { enum: ['always-and-inside-groups'] },
},
required: ['newlines-between-types'],
}] },
},
},
],
Expand Down

0 comments on commit 3c4c3f2

Please sign in to comment.