npx install-peerdeps --dev eslint-config-tme-vue
touch .eslintrc
Add the following to your .eslintrc
{
"extends": "tme-vue"
}
Add the following two script to your package.json file
"scripts": {
"lint": "eslint --ext .js,.vue src",
"lint:fix": "eslint --ext .js,.vue src --fix"
},
This command will simply display any errors or warnings your code may have
npm run lint
This command will attempt to fix any errors or warnings that don't follow the rules
npm run lint:fix