Skip to content

vue/no-negated-condition

<template> 中禁止使用否定条件

¥Disallow negated conditions in <template>

📖 规则详情

此规则与核心 no-negated-condition 规则相同,但适用于 <template> 中的表达式。

¥This rule is the same rule as core no-negated-condition rule but it applies to the expressions in <template>.

👫相关规则

¥👫 Related Rules

📚扩展阅读

¥📚 Further Reading

🚀版本

¥🚀 Version

此规则在 eslint-plugin-vue v10.4.0 中引入

¥This rule was introduced in eslint-plugin-vue v10.4.0

🔍代码实现

¥🔍 Implementation

使用 ❤️ 来自 ESLint 核心

¥Taken with ❤️ from ESLint core

eslint-plugin-vue v10.4 中文网 - 粤ICP备13048890号