-
Notifications
You must be signed in to change notification settings - Fork 49.5k
Open
Labels
Status: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug
Description
After updating eslint-plugin-react-hooks
to version 6.1.1
, running eslint .
throws an error caused by a circular reference inside the configuration object.
React version: 19.2.0
Steps To Reproduce
git clone https://github.com/mikaelbalin/mikaelbalin.github.io
cd mikaelbalin.github.io
pnpm i
pnpm lint
Link to code example: https://github.com/mikaelbalin/mikaelbalin.github.io
The current behavior
Running eslint .
fails with the following error:
TypeError: Converting circular structure to JSON
--> starting at object with constructor 'Object'
| property 'configs' -> object with constructor 'Object'
| property 'flat/recommended' -> object with constructor 'Array'
| ...
| property 'plugins' -> object with constructor 'Object'
--- property 'react-hooks' closes the circle
The expected behavior
ESLint should run normally and display linting warnings/errors without crashing. Including or extending the react-hooks
plugin or its recommended config should not introduce a circular reference in the ESLint configuration object.
pan93412, fragoulin, diego-aquino, virgild, sschuberth and 5 moreoidualc, elartix and josevitor039
Metadata
Metadata
Assignees
Labels
Status: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug