Skip to content

@wordpress/eslint-plugin package does not support node.js 18 #45696

@james58899

Description

@james58899

Description

Node.js 18 is LTS now.
But @wordpress/eslint-plugin dependency eslint-plugin-jsdoc version is too old.

Error:

error [email protected]: The engine "node" is incompatible with this module. Expected version "^12 || ^14 || ^16 || ^17". Got "18.12.1"

Command yarn why eslint-plugin-jsdoc output:

=> Found "[email protected]"
info Reasons this module exists
   - "@wordpress#scripts#@wordpress#eslint-plugin" depends on it
   - Hoisted from "@wordpress#scripts#@wordpress#eslint-plugin#eslint-plugin-jsdoc"

Step-by-step reproduction instructions

  1. Install Node.js 18
  2. yarn add @wordpress/scripts

Screenshots, screen recording, code snippet

No response

Environment info

Node version: 18.12.1
@wordpress/scripts version: 24.5.0

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

No

Metadata

Metadata

Labels

Needs DevReady for, and needs developer efforts[Priority] HighUsed to indicate top priority items that need quick attention[Tool] ESLint plugin/packages/eslint-plugin[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions