How to run lint --fix command
-
I am trying to run “npm run lint --fix” command but it seems it just runs lint but doesn’t fix the issues. Can someone let me know if we have any other command or how to fix the same?
-
depending on the issues you will usually need to open the file and fix it manually or if just indentation and such, depends on your text editor there are autofix function like in vscode once you save.
-
Hi @metalsadman
I understand about IDE, but I am more interested in “npm run lint --fix” command.Please find the attached screenshot for reference
As you can see I have added --fix flag in the command yet it ran as if I ran without --fix flag
-
it’s a eslint issue, you can get more help about it in their site or repo imo.
-
Got it resolved by executing npm run lint – --fix