--no-fix option is ignored by vue-cli-service when using typescript.
See original GitHub issueVersion
3.0.0-beta.6
Reproduction link
https://github.com/BenoitAverty/vue-cli-test-tslint
Steps to reproduce
Run npm run lint -- --no-fix
or npx run vue-cli-service lint --no-fix
.
What is expected?
The lint errors should be reported but no file should be changed.
What is actually happening?
Errors are fixed in the file and not reported.
I would like to run linting in a precommit hook but not format the files. Currently this is not possible.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
vue/cli-plugin-eslint
Usage: vue-cli-service lint [options] [...files] Options: --format [formatter] specify formatter (default: stylish) --no-fix do not fix ...
Read more >How to use '--fix' to modify with Vue-cli - Stack Overflow
./node_modules/.bin/vue-cli-service lint --fix seems to work.
Read more >@vue/cli-plugin-eslint | Yarn - Package Manager
Usage: vue-cli-service lint [options] [...files] Options: --format [formatter] specify formatter (default: stylish) --no-fix do not fix errors --max-errors ...
Read more >Configuration | Vue CLI Plugin Electron Builder - GitHub Pages
Easily Build Your Vue.js App For Desktop With Electron. ... Webpack Configuration; Changing the Output Directory; TypeScript Options; Changing the File ...
Read more >Vue + TypeScript & Debuggers - ckh|Consulting
You can determine which version of the Vue CLI you're using by checking which version of the “@vue/cli-service” package is in your package.json ......
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
in the meantime, I think
npm run lint -- --no-fix=true
should work as an ugly workaround.@dhensche If you open a PR, I think the same bug is present in the eslint plugin (when typescript is not chosen)
Yeah, I’m working on a fix right now. Not a ton of experience writing tests so that is taking most of my time 😨