eslint-git-changes

Run eslint on added and modified javascript/json/jsx files in your git working tree

Usage no npm install needed!

<script type="module">
  import eslintGitChanges from 'https://cdn.skypack.dev/eslint-git-changes';
</script>

README

eslint-git-changes

Run eslint on added and modified javascript/json/jsx files in your git working tree

Usage

Install it: npm install --save-dev eslint-git-changes.

Suggestion: Then add a pretest script to your package.json.

{
    "pretest": "eslint-git-changes --json --jsx",
    "test": "mocha",
    "posttest": "echo \"profit\""
}