How to run eslint --fix from npm script
You can run below command:
npm run lint -- --fix
You can add a new command in package.json.
"scripts": {
"lint": "eslint --fix --ext .js,.jsx ."
}
And then you can run it in terminal npm run lint
.