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 {
computed: {
pro() {
return Promise.all([new Promise((resolve, reject) => {})])
},
foo: async function () {
return await someFunc()
},
bar() {
return fetch(url).then(response => {})
},
tim() {
setTimeout(() => { }, 0)
},
inst() {
return new Promise((resolve, reject) => {})
},
}
}
</script><script>
export default {
computed: {
foo() {
return this.bar
}
}
}
</script>Popular · 1 of 50
Disallow asynchronous actions in computed properties
<script>
export default {
computed: {
pro() {
return Promise.all([new Promise((resolve, reject) => {})])
},
foo: async function () {
return await someFunc()
},
bar() {
return fetch(url).then(response => {})
},
tim() {
setTimeout(() => { }, 0)
},
inst() {
return new Promise((resolve, reject) => {})
},
}
}
</script><script>
export default {
computed: {
foo() {
return this.bar
}
}
}
</script>