npx install-peerdeps --dev @mile6/eslint-config-mile6-vue
touch .eslintrc.js
Add the following to your .eslintrc.js
{
"extends": "@mile6/mile6-vue"
}
Add the following two script to your package.json file.
You'll need to replace <src>
with the location of the files you'd like ESLint to target. This may be different for each project.
"scripts": {
"lint": "eslint --ext .ts,.js,.vue <src>",
"lint:fix": "eslint --ext .ts,.js,.vue <src> --fix"
},
Will display any errors or warnings ESLint finds in the codebase
npm run lint
Will attempt to fix any errors or warnings that ESLint finds
npm run lint:fix