vue/no-reserved-props
eslint-plugin-vue
No autofixRecommended
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/no-reserved-props": "error",
},
},
];<script>
export default {
props: {
ref: String,
key: String,
}
}
</script><script>
export default {
props: {
foo: String,
}
}
</script>Examples from the Oxlint documentation.
vue/no-reserved-props
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/no-reserved-props": "error",
},
},
];vue/no-reserved-props
vue plugin · correctness
{
"plugins": [
"vue"
],
"rules": {
"vue/no-reserved-props": "error"
}
}correctness/noVueReservedProps
correctness · since 2.1.2
{
"linter": {
"rules": {
"correctness": {
"noVueReservedProps": "error"
}
}
}
}Disallow side effects in computed properties
Disallow asynchronously registered lifecycle hooks
Disallow asynchronously registered watch
Disallow asynchronously registered expose
Enforce import from 'vue' instead of import from '@vue/*'