vue/no-restricted-syntax
eslint-plugin-vue
No autofix
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/no-restricted-syntax": "error",
},
},
]; <div> {{ foo() }} </div>
<div> {{ foo.bar() }} </div>
<div> {{ foo().bar }} </div>
</template><div> {{ foo }} </div>
<div> {{ foo.bar }} </div>Examples from the ESLint documentation.
vue/no-restricted-syntax
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/no-restricted-syntax": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Enforce consistent spacing before and after keywords in <template>
Enforce consistent spacing between keys and values in object literal properties in <template>
Enforce consistent spacing inside braces in <template>