jsx-eslint / eslint-plugin-jsx-a11y

Static AST checker for a11y rules on JSX elements.
MIT License
3.38k stars 637 forks source link

axe-core dependency breaks nodejs14 compliancy #953

Closed Jimbo3993 closed 1 year ago

Jimbo3993 commented 1 year ago

Hi,

Our project is running under nodeJs 14.17.0,

Since yesterday evening, the lint phase can't go through and throws error because "Object.hasOwn() is not a function" whenever it's assessing jsx-a11y eslint rules,

Prefixing axe-core to version ~4.7 in our package.json fixes it, but it would be nice to mention that nodeJs14 is not compatible atm.

this is the release note from axe-core about the version 4.8, https://github.com/dequelabs/axe-core/releases/tag/v4.8.0

ljharb commented 1 year ago

That sounds like a bug in axe-core. Can you file it there? https://npmjs.com/object.hasown is an easy solution.

ljharb commented 1 year ago

(related; https://github.com/dequelabs/axe-core/issues/4127)

ljharb commented 1 year ago

This fix was merged into axe-core, so presumably it will be in v4.8.2.