I want it to show all errors for all files in react/next app in command line with eslint when i write (for example) "npm run errors" or "npm run lint".
I tried searching for eslint but couldn't find anything!
I want it to show all errors for all files in react/next app in command line with eslint when i write (for example) "npm run errors" or "npm run lint".
I tried searching for eslint but couldn't find anything!
You can use something like below in your
package.json:So, you can view all eslint errors/warnings using
npm run lint:checkand fix them usingnpm run lint:fixYou can adjust these commands for your needs, and you will also have to set up the eslint configurations through
.eslintrc.jsor.eslintrc.jsonfile to define what eslint errors/warnings to show up or ignore, etc.