Running eslint command every time you save

Viewed 1815

I have my package.json script set up like this:

  "scripts": {
    "lint": "eslint src webpack.config.js || exit 0"
  },

How can I have this lint command run every time I save a file so I don't have to run npm run lint every single time?

1 Answers
Related