This is the set of rules to for usage in Vue based projects.
npm i -D eslint prettier @moser-inc/eslint-config-vue
Export the config from your eslint.config.mjs
file. The config exports a function that returns a composer
instance (see here) that can prepend/append/override rules and configuration.
import moserConfig from '@moser-inc/eslint-config-vue/flat';
export default moserConfig().append(...);
Add the config to the extends
option in your .eslintrc.cjs
file.
module.exports = {
extends: ['@moser-inc/eslint-config-vue']
}