-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change Request: build & publish cjs bundle #307
Comments
Makes sense to me 👍 |
This isn't possible because |
That's too bad. It's another reason for supporting async parsers. |
Yeah, although honestly, I think we're at the point where CommonJS just isn't that important anymore. Especially with Node v22 allowing |
It's true, const { default: markdown } = require("@eslint/markdown");
module.exports = [
...markdown.configs.recommended
]; |
Environment
ESLint version: v9.16.0
@eslint/markdown version: v6.2.1
Node version: v22.11.0
npm version: n/a
Operating System: n/a
What problem do you want to solve?
This package only published esm, no cjs.
For projects with
pkg.type = "commonjs"
(the node.js default) (e.g.eslint/eslint
), it's not possible to use it ineslint.config.js
.the workaround is to convert the config file to
eslint.config.mjs
.What do you think is the correct solution?
add rollup config to build cjs, and publish it to npm.
Participation
Additional comments
Technically, it's a feature request; not a bug - as the docs only mentioned the esm usage.
Rationality:
@eslint/json
has also published cjsThe text was updated successfully, but these errors were encountered: