Skip to content

Commit 1692fe2

Browse files
authored
feat!: Add missing deprecated/replacedBy properties to meta-property-ordering rule (#320)
breaking: add missing deprecated/replacedBy properties to meta-property-ordering rule
1 parent 4adeb6c commit 1692fe2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: docs/rules/meta-property-ordering.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This rule enforces that meta properties of a rule are placed in a consistent ord
1212

1313
This rule has an array option:
1414

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

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

Diff for: lib/rules/meta-property-ordering.js

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ module.exports = {
4545
'docs',
4646
'fixable',
4747
'hasSuggestions',
48+
'deprecated',
49+
'replacedBy',
4850
'schema',
4951
'messages',
5052
];

0 commit comments

Comments
 (0)