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 moser from '@moser-inc/eslint-config-vue/flat';
export default moser().append(...);
For support for type checked rules, include the tsconfigPath
option.
import moser from '@moser-inc/eslint-config/flat';
export default moser({ tsconfigPath: './tsconfig.json' }).append(...);
Add the config to the extends
option in your .eslintrc.cjs
file.
module.exports = {
extends: ['@moser-inc/eslint-config-vue']
}