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
fix(eslint-config-turbo): use module.exports for ESLint v8 compatibility
Fixes#10901
In PR #10794, we changed from module.exports to export default, which
caused bunchee to generate exports.default = config instead of
module.exports = config in the CommonJS build.
ESLint v8 with legacy .eslintrc.* configuration expects shareable
configs to export directly via module.exports. When it encounters
exports.default, it interprets 'default' as an unexpected top-level
configuration property, resulting in the error:
'Unexpected top-level property "default"'
This fix reverts to module.exports for the main entry point to restore
ESLint v8 compatibility, while maintaining ESLint v9 flat config support
through the ./flat export path.
Testing:
- Verified publint --strict passes
- Verified attw type checking passes
- Confirmed compiled output uses module.exports
- Both CJS require() and ESM import() work correctly
0 commit comments