Do you have some ideas on how to do this? Maybe we could add a script to package.json?
You should be able to fix lint errors with the command line using npm run lint -- --fix
, which runs eslint with the --fix
argument.
@gkjohnson That works just fine. Another option is to properly configure your IDE/editor (e.g. VSCode) so it automatically fixes lint errors when saving a file.
VSCode setting
Most helpful comment
You should be able to fix lint errors with the command line using
npm run lint -- --fix
, which runs eslint with the--fix
argument.