-
Notifications
You must be signed in to change notification settings - Fork 151
Open
Labels
choreChanges that affect the build system, CI config or other changes that don't modify src/test filesChanges that affect the build system, CI config or other changes that don't modify src/test filesenhancementNew feature or requestNew feature or request
Description
The current bundle is in CJS format. Since ESLint flat config default format is ESM, we need to build the plugin for this format by default. Let's keep compatibility with CJS format for now, so we get both (we will have to point to the corresponding dist/
paths for each in the exports
field of the package.json
.
Some resources on how to publish in both CJS and ESM with TS:
trevorpfiz, OleSkaar and andreidmt
Metadata
Metadata
Assignees
Labels
choreChanges that affect the build system, CI config or other changes that don't modify src/test filesChanges that affect the build system, CI config or other changes that don't modify src/test filesenhancementNew feature or requestNew feature or request
Type
Projects
Status
In Progress
Milestone
Relationships
Development
Select code repository
Activity
[-]Support both CJS and ESM[/-][+]Bundle plugin in ESM format[/+]sdavids commentedon Jan 15, 2025
Any update?
Flat config has been the default for 10 months now.
ESLint 8 has reached EOL
While you are at it, you might want to update
README.md
with flat config examples as well.sdavids commentedon Jan 15, 2025
Does not work:
eslint.config.js
G-Rath commentedon Jan 15, 2025
@sdavids could you open a new issue with more information on how it's not working, ideally with a reproduction? We already support ESLint v9 + flat config (with examples of that in our README), and I personally have been using it in
cjs
andmjs
configs without any issuessdavids commentedon Jan 16, 2025
#900 (comment) is obsolete.