diff --git a/docs/rules/README.md b/docs/rules/README.md index 4d0316c09..c96f44a00 100644 --- a/docs/rules/README.md +++ b/docs/rules/README.md @@ -347,6 +347,7 @@ The following rules extend the rules provided by ESLint itself and apply them to | [vue/key-spacing](./key-spacing.md) | enforce consistent spacing between keys and values in object literal properties | :wrench: | | [vue/keyword-spacing](./keyword-spacing.md) | enforce consistent spacing before and after keywords | :wrench: | | [vue/max-len](./max-len.md) | enforce a maximum line length | | +| [vue/no-constant-condition](./no-constant-condition.md) | disallow constant expressions in conditions | | | [vue/no-empty-pattern](./no-empty-pattern.md) | disallow empty destructuring patterns | | | [vue/no-extra-parens](./no-extra-parens.md) | disallow unnecessary parentheses | :wrench: | | [vue/no-irregular-whitespace](./no-irregular-whitespace.md) | disallow irregular whitespace | | diff --git a/docs/rules/no-constant-condition.md b/docs/rules/no-constant-condition.md new file mode 100644 index 000000000..901b2a401 --- /dev/null +++ b/docs/rules/no-constant-condition.md @@ -0,0 +1,26 @@ +--- +pageClass: rule-details +sidebarDepth: 0 +title: vue/no-constant-condition +description: disallow constant expressions in conditions +--- +# vue/no-constant-condition + +> disallow constant expressions in conditions + +- :exclamation: ***This rule has not been released yet.*** + +This rule is the same rule as core [no-constant-condition] rule but it applies to the expressions in `