-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
eslint-plugin-mdx
doesn't seems to load .remarkrc.mjs
#436
Comments
https://github.com/davidtheclark/cosmiconfig#searchplaces PR welcome to add this support at eslint-mdx/packages/eslint-mdx/src/worker.ts Lines 60 to 62 in a1998c7
|
Maybe we should migrate to use |
JounQin
added a commit
that referenced
this issue
May 3, 2023
JounQin
added a commit
that referenced
this issue
May 3, 2023
* feat: use unified-engine to load ESM configurations close #436
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Initial checklist
Affected packages and versions
All latest
Link to runnable example
https://github.com/JulianCataldo/eslint-mdx-repro
Steps to reproduce
Hello!
Here is a minimal reproduction repository I've made to illustrate this issue:
https://github.com/JulianCataldo/eslint-mdx-repro
Steps to repro. are described in its README.
I've talked about it before here:
remarkjs/remark-lint#300
Was not quite sure were in the stack is the culprit (remark? eslint? eslint-mdx? cosmic-config?).
For now, creating a static config file (as YAML or JSON) seems to work fine, so ESLint is good with 100% ESMs remark plugins (through the MDX plugin).
But that means having to maintain two remark-lint config, one for MDX and one for MD.
Maybe I've overlooked something?
Many thanks :)
Expected behavior
.remarkrc.mjs
loaded from bothremark
andeslint
Actual behavior
Module JS configs are not loaded by the ESLint plugin.
The text was updated successfully, but these errors were encountered: