mdx-js / eslint-mdx

ESLint Parser/Plugin for MDX
https://npmjs.org/eslint-plugin-mdx
MIT License
264 stars 32 forks source link

feat: performance improvement via cache #306

Closed JounQin closed 3 years ago

JounQin commented 3 years ago
codesandbox-ci[bot] commented 3 years ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

JounQin commented 3 years ago

@wooorm Is there an open API from remark itself to resolve its config?

wooorm commented 3 years ago

unified-engine does all that stuff, specifically, this file: https://github.com/unifiedjs/unified-engine/blob/9bd9c30ffb4e0e3b28c06451e40ea429abf95662/lib/configuration.js#L28. Configuration is here: https://github.com/remarkjs/remark/blob/80658e9e601452f0d97fa71ba8b7ba1ed43cdec7/packages/remark-cli/cli.js#L11-L23.

There’s some chatter on updating to use cosmiconfig or so soon, though: https://github.com/remarkjs/remark/issues/654.

Also: I’m rewriting everything in ESM + JSDoc based TS right now. So expect types added there in the near future too.