-
Notifications
You must be signed in to change notification settings - Fork 108
Description
Issue workflow progress
Progress of the issue based on the
Contributor Workflow
-
1. The issue provides a reproduction available on GitHub, Stackblitz or CodeSandbox
For example, you can start off by editng the
'basic' example on Stackblitz.Please make sure the graphql-eslint version under
package.json
matches yours. -
2. A failing test has been provided
-
3. A local solution has been provided
-
4. A pull request is pending review
Describe the bug
When you import this plugin in your eslint config and use nodejs 22 eslint will always crash. You do not have to use the plugin itself. It only needs to be imported
To Reproduce Steps to reproduce the behavior:
- import this plugin into your eslint.config.js
- run eslint
- it crashes with
SyntaxError: Unexpected identifier 'assert'
Expected behavior
Environment:
- OS: Windows 11
@graphql-eslint/eslint-plugin
: 4.0.0-alpha.3- Node.js: 22.5.1
Additional context
NodeJS has removed support for "assert" here: nodejs/node#52104
The feature is used in https://github.com/dimaMachina/graphql-eslint/blame/master/packages/plugin/src/meta.ts