Skip to content

Convert ESLint plugins to CommonJS#14180

Merged
nicolo-ribaudo merged 5 commits intobabel:mainfrom
nicolo-ribaudo:eslint-cjs
Mar 3, 2022
Merged

Convert ESLint plugins to CommonJS#14180
nicolo-ribaudo merged 5 commits intobabel:mainfrom
nicolo-ribaudo:eslint-cjs

Conversation

@nicolo-ribaudo
Copy link
Copy Markdown
Member

@nicolo-ribaudo nicolo-ribaudo commented Jan 19, 2022

Q                       A
Fixed Issues? Fixes #1, Fixes #2
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

ESLint doesn't support ESM, so plugins should be authored as CJS (similarly to how we do for @babel/eslint-parser).

I had to convert the files from TS to plain JS because TS doesn't support .cts yet, but they didn't contain any type annotation anyway.

@nicolo-ribaudo nicolo-ribaudo added the PR: Internal 🏠 A type of pull request used for our changelog categories label Jan 19, 2022
@babel-bot
Copy link
Copy Markdown
Collaborator

babel-bot commented Jan 19, 2022

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/51301/

@nicolo-ribaudo nicolo-ribaudo merged commit 9e9301d into babel:main Mar 3, 2022
@nicolo-ribaudo nicolo-ribaudo deleted the eslint-cjs branch March 3, 2022 15:52
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jun 3, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area: eslint outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Internal 🏠 A type of pull request used for our changelog categories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants