Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2ecbd76

Browse files
committedJan 7, 2025·
Add defaultOptions to all rules
1 parent 33ffc91 commit 2ecbd76

File tree

106 files changed

+325
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+325
-9
lines changed
 

‎lib/rules/attribute-hyphenation.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ module.exports = {
6868
additionalProperties: false
6969
}
7070
],
71+
defaultOptions: [
72+
'always',
73+
{
74+
ignore: [],
75+
ignoreTags: []
76+
}
77+
],
7178
messages: {
7279
mustBeHyphenated: "Attribute '{{text}}' must be hyphenated.",
7380
cannotBeHyphenated: "Attribute '{{text}}' can't be hyphenated."

‎lib/rules/attributes-order.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,24 @@ module.exports = {
455455
additionalProperties: false
456456
}
457457
],
458+
defaultOptions: [
459+
{
460+
order: [
461+
ATTRS.DEFINITION,
462+
ATTRS.LIST_RENDERING,
463+
ATTRS.CONDITIONALS,
464+
ATTRS.RENDER_MODIFIERS,
465+
ATTRS.GLOBAL,
466+
[ATTRS.UNIQUE, ATTRS.SLOT],
467+
ATTRS.TWO_WAY_BINDING,
468+
ATTRS.OTHER_DIRECTIVES,
469+
[ATTRS.ATTR_DYNAMIC, ATTRS.ATTR_STATIC, ATTRS.ATTR_SHORTHAND_BOOL],
470+
ATTRS.EVENTS,
471+
ATTRS.CONTENT
472+
],
473+
alphabetical: false
474+
}
475+
],
458476
messages: {
459477
expectedOrder: `Attribute "{{currentNode}}" should go before "{{prevNode}}".`
460478
}

0 commit comments

Comments
 (0)
Please sign in to comment.