eslint-plugin-jsx-a11y says it doesn't support ESLint 10. It does.
eslint-plugin-jsx-a11y@6.10.2 declares this: "peerDependencies" : { "eslint" : "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9" } ESLint's current release is 10.9.0, so npm refuses to put them in the same tree: npm error Could not resolve dependency: npm error peer eslint@"^3 || ... || ^9" from eslint-plugin-jsx-a11y@6.10.2 I forced it with --legacy-peer-deps , turned on all 39 rules the plugin exports,…
eslint-plugin-jsx-a11y has stated that it does not support ESLint 10, but this is incorrect. The plugin functions properly with ESLint 10. The issue lies within the peerDependencies specified in the plugin's manifest, which does not accurately reflect its compatibility with newer versions of ESLint. When using the --legacy-peer-deps flag and enabling all rules, the plugin works seamlessly with ESLint 10.
This discrepancy highlights the importance of understanding peer dependencies and their relationship with ESLint versions.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.