question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MDX is definitely awesome 😄

For a React design system project, I’m currently using a split of .md and .js files for functionality across many components that MDX would clearly simplify. My biggest hesitation to convert them, however, is is that it’s really useful to have default eslint linting of the normal js / jsx files, both within my team’s local editors and within CI.

So my question is what is the status of linting mdx files?

There seems to be some work going on within remark here, but it seems pretty far from fulfilling any aspect of linting mdx files in general.

On a related note, how are other people who’re using mdx solving this issue?

Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

7reactions
azzcommented, Sep 28, 2018

I just started working on eslint-plugin-mdx which lets you lint the JSX and imports from MDX files with ESLint.

1reaction
silvenoncommented, Oct 1, 2018

My bad, I see that you did! ⭐️

Read more comments on GitHub >

github_iconTop Results From Across the Web

mdx-js/eslint-mdx: ESLint Parser/Plugin for MDX - GitHub
ESLint Parser/Plugin for MDX, helps you lint all ES syntaxes. Linting code blocks can be enabled with mdx/code-blocks setting too!
Read more >
eslint-mdx - npm
ESLint Parser for MDX. Latest version: 2.0.5, last published: 3 months ago. Start using eslint-mdx in your project by running `npm i ...
Read more >
How to get mdx file support (linting) in VS Code?
I have a vue.js project with the storybook addon. I am trying to write a story using the Docs addon which allows you...
Read more >
How to create a custom lint rule for Markdown and MDX using ...
In this article, we'll go through how to setup your own custom lint rule for a JavaScript project using Markdown and MDX, starting...
Read more >
Fixing MDX linting errors in Next.js using eslint-plugin-mdx
Recently I was getting mdx Eslint linting errors in my mdx files where I write my posts. And a red squiggly line appears...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found