diff --git a/docs/rules/README.md b/docs/rules/README.md index 04d9046c1..208c25a51 100644 --- a/docs/rules/README.md +++ b/docs/rules/README.md @@ -380,6 +380,7 @@ The following rules extend the rules provided by ESLint itself and apply them to | [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 | | +| [vue/no-loss-of-precision](./no-loss-of-precision.md) | disallow literal numbers that lose precision | | | [vue/no-restricted-syntax](./no-restricted-syntax.md) | disallow specified syntax | | | [vue/no-sparse-arrays](./no-sparse-arrays.md) | disallow sparse arrays | | | [vue/no-useless-concat](./no-useless-concat.md) | disallow unnecessary concatenation of literals or template literals | | diff --git a/docs/rules/no-loss-of-precision.md b/docs/rules/no-loss-of-precision.md new file mode 100644 index 000000000..2c253c786 --- /dev/null +++ b/docs/rules/no-loss-of-precision.md @@ -0,0 +1,30 @@ +--- +pageClass: rule-details +sidebarDepth: 0 +title: vue/no-loss-of-precision +description: disallow literal numbers that lose precision +--- +# vue/no-loss-of-precision + +> disallow literal numbers that lose precision + +- :exclamation: ***This rule has not been released yet.*** + +This rule is the same rule as core [no-loss-of-precision] rule but it applies to the expressions in `