Closed rottmann closed 7 years ago
When running eslint on a directory, it will lint only the .js
files. You have to specify extra extensions to lint other file types: eslint --ext .vue src
. See documentation.
Thanks! Did not see the wood for the trees :evergreen_tree: :evergreen_tree: :evergreen_tree:
This helped immensely. I wonder if it'd be worthwhile adding this to this repo's README? I know that people should know this but the fact is a lot of people don't. Me and my colleagues were stumped on this. :)
It is not a plugin problem, it is a "user didn't read the eslint documentation"-Problem ;-) Shame on me.
Sure, but it seems you're not alone, and adding a small paragraph in the README won't hurt anyone!
What i am doing wrong?
node 6.4.0
package.json
.eslintrc / .eslintrc.json
src/test.vue
$ npm run lint
Result:
No error, nothing else.