You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Add eslint and eslint-loader and eslint-plugin-vue to your projects package.json file
npm i eslint eslint-loader eslint-plugin-vue --save-dev
2. Create a base configuration by --init
./node_modules/.bin/eslint --init
it will ask you a number of questions for my laravel projects I use the following:
* Are you using ECMAScript 6 features? Yes
* Are you using ES6 modules? Yes
* Where will your code run? Browser
* Do you use CommonJS? Yes
* Do you use JSX? No
* What style of indentation do you use? Tabs
* What quotes do you use for strings? single
* What line endings do you use? Unix
* Do you require semicolons? No
* What format do you want your config file to be in? JSON
You’ll end up with a new file called .eslintr.json within your project root like so.
There are actually a number of different default config values for the eslint vue plugin that add increasingly stricter rule sets to be applied to the linter. They are as follows: