Support ESM config (.eslintrc.mjs)
See original GitHub issueSearch terms used: is:issue is:open mjs OR esm OR "es module"
cf. #12593, which was auto-closed. All of the issues/RFCs mentioned as blockers in that issue are now closed/merged.
What is the status of ES module support for config files? In the form of
.eslintrc.mjs
or.eslintrc.js
where the nearestpackage.json
includes"type": "module"
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:19 (12 by maintainers)
Top Results From Across the Web
Using ES Modules (ESM) in Node.js: A Practical Guide (Part 3)
ESlint configuration for Node.js ESM #. ESlint already supports ESM well because a lot of code is already using ESM via Babel or...
Read more >ESLint's new config system, Part 2: Introduction to flat config
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >Must use import to load ES Module .eslintrc.js - Stack Overflow
In my case, I had "type": "module" in package.json and .eslintrc.cjs (to force commonJS since ESM is not yet supported) and wanted to...
Read more >What does it take to support Node.js ESM? – The Guild
build your library into ESM Compatible modules with the extension .mjs , and keep the CommonJS version with the standard .js extension; build ......
Read more >eslint-import-resolver-typescript - npm
imports/exports fields support in package.json. TOC. Notice; Installation; Configuration; Options from enhanced-resolve. conditionNames ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As a final note here: ESM config will be part of the https://github.com/eslint/rfcs/pull/9 implementation.
Here’s the nice thing about my approach: if I’m wrong, we can always add support for
.mjs
later. I’m just less inclined to add a feature that may or may not be needed because we already have nearly seven years of backwards compatibility cruft in ESLint that we really can’t remove, so I don’t want to add more unless we need it.