-
Notifications
You must be signed in to change notification settings - Fork 234
ESLint
David Graham edited this page Feb 9, 2018
·
13 revisions
The .eslint.js
file holds the configuration for the linter. Most projects I've seen prefer the Standard preset(a.k.a. the one without semi-colons) so I've selected that for this example project. Vue also has some recommended rules that you can add via the eslint-plugin-vue (which I've installed for this project). You can open up the .eslint.js
file and notice all the additions I've added there (on top of what Vue-cli created).
You can tell ESLint to ignore specific files and directories by using an .eslintignore
file in your project's root directory. The ignore pattern works just like .gitignore does:
build/*.js
config/*.js