paleite / eslint-plugin-diff

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

ESLint configuration in plugin:diff/staged is invalid: #16

Closed link89 closed 2 years ago

link89 commented 2 years ago

I have install the plugin and add plugin:diff/staged in extends file of .eslintrc.js, and when I run with npx eslint --debug, I found the following error

  eslint:config-file Loading plugin:diff/staged +225ms
  eslint:config-file Attempting to resolve eslint-plugin-diff +0ms
  eslint:config-file Loading JS config file: /Users/henry.xu/workspace/Fiji-Play/node_modules/eslint-plugin-diff/dist/index.js +0ms
ESLint configuration in plugin:diff/staged is invalid:
    - Unexpected top-level property "overrides[0].processor".
paleite commented 2 years ago

Hi! overrides[0].processor was added to ESLint in version 6.7.0, so I suspect you might be using a version of ESLint older than that.

Could you please run npx eslint --version and post the output here?

I'm closing this ticket for now, and if you have a more recent version, please let me know and I'll re-open this ticket.

Thanks in advance!