Empty options, much like unused variables, are often a result of incomplete refactoring and may confuse readers.
This rule will not check empty functions and objects with comments. You can leave empty options with any comments inside to avoid emitting lint errors.
This rule has an object option:
"ignores"
ignores specified options
export default {
methods: {},
}
export default {
created() {},
}
export default {
created: () => {},
}
export default {
components: {
Popover,
},
}
export default {
components: {
// pass
},
}
export default {
created() {
// pass
},
}
/* eslint galaxy/no-empty-vue-options: ["error", { "ignores": ["methods"] }] */
export default {
methods: {},
}