question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

--no-fix option is ignored by vue-cli-service when using typescript.

See original GitHub issue

Version

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:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
BenoitAvertycommented, Apr 11, 2018

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)

1reaction
dhenschecommented, Apr 11, 2018

Yeah, I’m working on a fix right now. Not a ton of experience writing tests so that is taking most of my time 😨

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found