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
parserOptions.sourceType is module, as Next.js only supports ESM in .js files. Once Next.js updates to webpack >= 4 this will be reverted and .mjs should be used for ESM source files instead.
Rules preferring modern ES syntax only apply if the syntax is supported:
For Babel projects, support is assumed.
For non-Babel browser projects, no support is assumed.
For non-Babel Node.js projects, support for each syntax is determined against the package.jsonengines.node field (now documented as required for all projects).