Shared eslint config for Vue3
$ npm install -D @ombro/eslint-config-vue3
If your package manager does not automatically install
peerDependencies
, you need to install it yourself according to the warning message
Create .eslintrc.js
in the project root directory and add the following content:
module.exports = {
root: true,
extends: ['@ombro/eslint-config-vue3'],
}
This configuration already integrates with eslint-config-prettier
, you can go ahead and configure .prettierrc
and eslint
rules will be consistent with it