Skip to content

Commit

Permalink
feat!: Add missing deprecated/replacedBy properties to `meta-prop…
Browse files Browse the repository at this point in the history
…erty-ordering` rule (#320)

breaking: add missing deprecated/replacedBy properties to meta-property-ordering rule
  • Loading branch information
bmish authored Apr 9, 2024
1 parent 4adeb6c commit 1692fe2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/meta-property-ordering.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This rule enforces that meta properties of a rule are placed in a consistent ord

This rule has an array option:

- `['type', 'docs', 'fixable', 'hasSuggestions', 'schema', 'messages', 'deprecated', 'replacedBy']` (default): The order that the properties of `meta` should be placed in.
- `['type', 'docs', 'fixable', 'hasSuggestions', 'deprecated', 'replacedBy', 'schema', 'messages']` (default): The order that the properties of `meta` should be placed in.

Examples of **incorrect** code for this rule:

Expand Down
2 changes: 2 additions & 0 deletions lib/rules/meta-property-ordering.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ module.exports = {
'docs',
'fixable',
'hasSuggestions',
'deprecated',
'replacedBy',
'schema',
'messages',
];
Expand Down

0 comments on commit 1692fe2

Please sign in to comment.