vue/no-empty-pattern
eslint-plugin-vue
No autofix
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/no-empty-pattern": "error",
},
},
];var {} = foo;var {a: {}} = foo;function foo({}) {}var {a = {}} = foo;
var {a, b = {}} = foo;
var {a = []} = foo;
function foo({a = {}}) {}
function foo({a = []}) {}
var [a] = foo;Examples from the Biome documentation.
vue/no-empty-pattern
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/no-empty-pattern": "error",
},
},
];Oxlint does not have this rule.
correctness/noEmptyPattern
correctness · since 1.0.0
{
"linter": {
"rules": {
"correctness": {
"noEmptyPattern": "error"
}
}
}
}Disallow empty destructuring patterns
Disallow irregular whitespace in .vue files
Enforce dot notation whenever possible in <template>
Disallow literal numbers that lose precision in <template>
Enforce order of compiler macros (defineProps, defineEmits, etc.)