Giter VIP home page Giter VIP logo

Comments (6)

JounQin avatar JounQin commented on July 26, 2024

They're definitely not same. eslint-plugin-mdx aims to lint .mdx files without inside codes, while eslint-plugin-markdown aims to lint inside codes.

Maybe you need two eslint config to lint .md/.mdx twice if you'd like to lint inside codes.

from eslint-mdx.

chenxsan avatar chenxsan commented on July 26, 2024

Sure they target different things, that's why I expect eslint-plugin-mdx to work fine in my use case.

My point is eslint-plugin-mdx won't work with processor for eslint-plugin-markdown enabled while eslint-plugin-markdown works just fine with or without eslint-plugin-mdx.

And I believe using eslint-plugin-markdown along with eslint-plugin-mdx is a very common use case.

Anyway, I'll see if I can find what's going on under the hood.

from eslint-mdx.

chenxsan avatar chenxsan commented on July 26, 2024

I'm closing this as it's expected as per eslint/eslint-plugin-markdown#134, i.e., we can't lint those code inside code blocks in .mdx files with eslint-plugin-markdown.

@JounQin One last question, any plan to support linting code inside code blocks now that we can't use it together with eslint-plugin-markdown? It seems to be possible.

from eslint-mdx.

JounQin avatar JounQin commented on July 26, 2024

The mdx core team is working on v2 and will pasring mdx as estree directly, so such changes are not going to happen soon, but you're free to share ideas about the possible implementation.

from eslint-mdx.

JounQin avatar JounQin commented on July 26, 2024

I just get an idea that we can already get code blocks by ourselves, so it should be possible to lint them by eslint-plugin-mdx itself.

What means we will never be compatible with eslint-plugin-markdown, but we can support code blocks.

It should not be difficult, I'll get started soon when I'm free.

see #278

from eslint-mdx.

JounQin avatar JounQin commented on July 26, 2024

reopen in favor of eslint/eslint-plugin-markdown#178 and #283

from eslint-mdx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.