When using the @reatom/eslint-config
package with eslint flat config, an unexpected syntax error occurs during the fix process. The error message is as follows:
SyntaxError: Unexpected token 'export'
It seems that the error is related to the use of the export keyword, which is unexpected in this context
npx eslint --fix
Package @reatom/eslint-plugin
3.4.3
Chrome
SyntaxError: Unexpected token 'export'
at internalCompileFunction (https://vitejsvitecvi2tb-hqal.w-credentialless-staticblitz.com/builtins.5bf3667c.js:266:849)
at wrapSafe (https://vitejsvitecvi2tb-hqal.w-credentialless-staticblitz.com/builtins.5bf3667c.js:144:13497)
at Module._compile (https://vitejsvitecvi2tb-hqal.w-credentialless-staticblitz.com/builtins.5bf3667c.js:144:13881)
at Module._extensions..js (https://vitejsvitecvi2tb-hqal.w-credentialless-staticblitz.com/builtins.5bf3667c.js:144:14855)
at Module.load (https://vitejsvitecvi2tb-hqal.w-credentialless-staticblitz.com/builtins.5bf3667c.js:144:12820)
at Module._load (https://vitejsvitecvi2tb-hqal.w-credentialless-staticblitz.com/builtins.5bf3667c.js:144:10273)
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too