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
Hi @vfan, thanks for the issue. I believe this is working as intended. By default, the generated ESLint config always follows JavaScript modules syntax (import/export).
In your case since your project follows commonjs syntax (require), the config file will have the .mjs extension to indicate that this file must be evaluated using JavaScript modules syntax.
If your package.json had type: module, which indicates that the project follows JavaScript modules syntax, then a eslint.config.js file would be generated instead of a eslint.config.mjs.
create-config/lib/config-generator.js
Line 136 in dbd8742
When my module is commonjs type,it generate eslint.config.mjs
The text was updated successfully, but these errors were encountered: