Appearance
vue/no-loss-of-precision
在
<template>
中禁止丢失精度的字面量数字¥Disallow literal numbers that lose precision in
<template>
此规则与核心 no-loss-of-precision 规则相同,但适用于 <template>
中的表达式。
¥This rule is the same rule as core no-loss-of-precision rule but it applies to the expressions in <template>
.
警告
你必须使用 ESLint v7.1.0 或更高版本才能使用此规则。
¥You must be using ESLint v7.1.0 or later to use this rule.
📚 扩展阅读
🚀版本
¥🚀 Version
此规则在 eslint-plugin-vue v8.0.0 中引入
¥This rule was introduced in eslint-plugin-vue v8.0.0
🔍代码实现
¥🔍 Implementation
使用 ❤️ 来自 ESLint 核心
¥Taken with ❤️ from ESLint core