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
@golopot can you try changing node_modules/eslint-plugin-react/configs/all.js to add Object.defineProperty(module.exports, 'languageOptions', { enumerable: false }); as the last line, and try again?
I'm wondering if making it non-enumerable will "hide" it from the legacy config's validation.
Activity
ljharb commentedon Oct 13, 2022
Thanks for catching that. The hope was that we can use the same imports in both config systems.
ljharb commentedon Oct 13, 2022
@golopot can you try changing
node_modules/eslint-plugin-react/configs/all.js
to addObject.defineProperty(module.exports, 'languageOptions', { enumerable: false });
as the last line, and try again?I'm wondering if making it non-enumerable will "hide" it from the legacy config's validation.
golopot commentedon Oct 13, 2022
@ljharb Adding that line fixed the bug.
ljharb commentedon Oct 14, 2022
Thanks@
@jjangga0214 can you confirm that with that line added, the new config system still works?
[Fix] configs: avoid legacy config system error
57 remaining items