Skip to content

vue/no-restricted-syntax

<template> 中禁止指定语法

¥Disallow specified syntax in <template>

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

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

🔧 选项

请参阅 no-restricted-syntax 了解详细选项。

¥Please see no-restricted-syntax for detailed options.

你可以在选择器中包含由 vue-eslint-parser 创建的 AST。要了解有关生成的 AST 中某些节点的更多信息,请转到 vue-eslint-parser - AST 文档

¥You can include the AST created by vue-eslint-parser in the selector. To know more about certain nodes in produced AST, please go vue-eslint-parser - AST docs.

"VElement > VExpressionContainer CallExpression"

禁止在 mustache 插值中使用调用表达式。

¥Forbids call expressions inside mustache interpolation.

Now loading...

📚扩展阅读

¥📚 Further Reading

🚀版本

¥🚀 Version

此规则在 eslint-plugin-vue v5.2.0 中引入

¥This rule was introduced in eslint-plugin-vue v5.2.0

🔍代码实现

¥🔍 Implementation

使用 ❤️ 来自 ESLint 核心

¥Taken with ❤️ from ESLint core

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