paleite / eslint-plugin-diff

Run ESLint on your changes only
https://npm.im/eslint-plugin-diff
MIT License
172 stars 13 forks source link

Can't provide commit SHA to ESLINT_PLUGIN_DIFF_COMMIT #60

Open cakeinpanic opened 8 months ago

cakeinpanic commented 8 months ago

Hi, if I'm setting ESLINT_PLUGIN_DIFF_COMMIT to be an actual commit, I'm getting an error

Error: Failed to load plugin 'diff' declared in '.eslintrc.js': Command failed: git diff --diff-algorithm=histogram --diff-filter=ACM --find-renames=100% --name-only --no-ext-diff --relative origin/4f357bc497d291cfb953ec84460b8aa7244ccc1f --
fatal: bad revision 'origin/4f357bc497d291cfb953ec84460b8aa7244ccc1f'

But sometimes I want to compare with a revision, can you please support provide an ability to use SHA there?

I believe this can be a simple solutions