You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
eslint-plugin-jsdoc has the correct engines.node version constraint.
Actual behavior
eslint-plugin-jsdoc throws a TypeError on Node.js v16.3.0 (which satisfies >=16):
TypeError: Object.hasOwn is not a function
Occurred while linting <redacted>/igir/src/console/logger.ts:15
Rule: "jsdoc/check-access"
at Object.getPreferredTagName (<redacted>/igir/node_modules/eslint-plugin-jsdoc/dist/jsdocUtils.js:440:14)
at Object.utils.getPreferredTagName (<redacted>/igir/node_modules/eslint-plugin-jsdoc/dist/iterateJsdoc.js:1245:37)
at Object.utils.forEachPreferredTag (<redacted>/igir/node_modules/eslint-plugin-jsdoc/dist/iterateJsdoc.js:1481:11)
at _default.checkPrivate (<redacted>/igir/node_modules/eslint-plugin-jsdoc/dist/rules/checkAccess.js:14:9)
at iterate (<redacted>/igir/node_modules/eslint-plugin-jsdoc/dist/iterateJsdoc.js:1752:3)
at callIterator (<redacted>/igir/node_modules/eslint-plugin-jsdoc/dist/iterateJsdoc.js:1888:7)
at *:not(Program) (<redacted>/igir/node_modules/eslint-plugin-jsdoc/dist/iterateJsdoc.js:1943:11)
at ruleErrorHandler (<redacted>/igir/node_modules/eslint/lib/linter/linter.js:1050:28)
at <redacted>/igir/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
Expected behavior
eslint-plugin-jsdoc
has the correctengines.node
version constraint.Actual behavior
eslint-plugin-jsdoc
throws aTypeError
on Node.js v16.3.0 (which satisfies>=16
):Object.hasOwn()
was added in Node.js v16.9.0: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwn.ESLint Config
https://github.com/emmercm/igir/blob/1c5b386fd178367be8cea582c8f543f331e2c830/.eslintrc
ESLint sample
https://github.com/emmercm/igir/blob/1c5b386fd178367be8cea582c8f543f331e2c830/src/console/logger.ts
Environment
eslint-plugin-jsdoc
version: v46.5.0Other:
@typescript-eslint/eslint-plugin
version: v5.60.0@typescript-eslint/parser
version: v5.60.0https://github.com/emmercm/igir/blob/1c5b386fd178367be8cea582c8f543f331e2c830/package.json
The text was updated successfully, but these errors were encountered: