From ad20838072495cfb96fd566920455333625a7efa Mon Sep 17 00:00:00 2001 From: Bryan Mishkin <698306+bmish@users.noreply.github.com> Date: Fri, 21 Oct 2022 16:58:19 -0400 Subject: [PATCH] breaking: add missing deprecated/replacedBy properties to meta-property-ordering rule --- docs/rules/meta-property-ordering.md | 2 +- lib/rules/meta-property-ordering.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/rules/meta-property-ordering.md b/docs/rules/meta-property-ordering.md index 60b6a47b..bdb90b25 100644 --- a/docs/rules/meta-property-ordering.md +++ b/docs/rules/meta-property-ordering.md @@ -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: diff --git a/lib/rules/meta-property-ordering.js b/lib/rules/meta-property-ordering.js index 8c19c12e..417f2ffe 100644 --- a/lib/rules/meta-property-ordering.js +++ b/lib/rules/meta-property-ordering.js @@ -45,6 +45,8 @@ module.exports = { 'docs', 'fixable', 'hasSuggestions', + 'deprecated', + 'replacedBy', 'schema', 'messages', ];