npm run lint - to run the linter for all files
npm run lintfix - to automate all files fixing most of the issues issues(fixes the spaces/tabs conversion,code alignment etc but will not fix all like unused vars...)
to run the linter for specific files just run eslint filename.
added 2 commands:
npm run lint
- to run the linter for all filesnpm run lintfix
- to automate all files fixing most of the issues issues(fixes the spaces/tabs conversion,code alignment etc but will not fix all like unused vars...)to run the linter for specific files just run
eslint filename
.