Rules
Every rule from ESLint, Oxlint and Biome. Pick a rule to see its example. Reach is the weekly npm downloads of the presets that enable a rule; trend is its change over the last quarter.
Every rule from ESLint, Oxlint and Biome. Pick a rule to see its example. Reach is the weekly npm downloads of the presets that enable a rule; trend is its change over the last quarter.
<script>
export default {
mounted() {
this.$set(obj, key, value)
this.$delete(obj, key)
Vue.set(obj, key, value)
Vue.delete(obj, key)
}
}
</script><script>
export default {
mounted() {
obj[key] = value
delete obj[key]
}
}
</script>Popular · 1 of 50
Disallow using deprecated $delete and $set (in Vue.js 3.0.0+)
<script>
export default {
mounted() {
this.$set(obj, key, value)
this.$delete(obj, key)
Vue.set(obj, key, value)
Vue.delete(obj, key)
}
}
</script><script>
export default {
mounted() {
obj[key] = value
delete obj[key]
}
}
</script>