Using standard with eslint-plugin-vue
See original GitHub issueHi folks, I’d like to suggest a snippet added to the docs describing how to use eslint-plugin-vue with standard, under the assumption that it’s a rather common linter, but specifically because its users don’t typically use it via eslint, but as its own binary.
I currently have it running as a separate npm script: one runs standard --plugin html '**/*.{js,vue}'
, and the other runs eslint 'src/**/*.vue'
(with an .eslintrc
that has the vue plugin in it) and that works fine, but there’s probably a way to consolidate. I haven’t done it, but figured someone here had, and waited to raise the suggestion of including it in the docs if others feel it’s warranted.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:7 (3 by maintainers)
Top Results From Across the Web
@vue/eslint-config-standard - npm
Start using @vue/eslint-config-standard in your project by running `npm i @vue/eslint-config-standard`. There are 123 other projects in the ...
Read more >User Guide | eslint-plugin-vue
In the Settings/Preferences dialog ( Cmd+, / Ctrl+Alt+S ), choose JavaScript under Languages and Frameworks and then choose ESLint under Code ...
Read more >vuejs/eslint-config-standard - GitHub
ESLint Shareable Configs for JavaScript Standard Style in Vue.js Projects. JavaScript Style Guide - Standard Style. Usage.
Read more >@vue/eslint-config-standard - npm package | Snyk
This config is specifically designed to be used by @vue/cli & create-vue setups and is not meant for outside use (it can be...
Read more >Vue 2 - ESLint + Standard + Prettier - Stack Overflow
I wasn't able to find prettier anywhere in your config. Sure it's not just ESLint + Standard without prettier? – Royi Bernthal. Jul...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry @timwis I’m a bit confused. vue-cli 3 is a CLI, and I was more looking for a linter in VScode as a plugin perhaps. Or am I confusing things?
@fancyboynet I guess it is related to Adonuxt template and/or AdonisJS starter
.eslistrc.js
configuration (I recognized it by// required to lint *.vue files
comment). Adonuxt starter has error in configuration that seems pretty innocent:but it should be replaced with
as noted here.
They also put
html
plugin as one that should lint vue files, but IMHO it’s weird: Vue SFCs are special, directives and scripts should be linted througheslint-plugin-vue
.