Open wooorm opened 5 months ago
Sure, rules may apply to extension syntax.
I don’t think we should copy ESLint rules. People can use eslint-plugin-mdx
to run ESLint rules on MDX files.
But there are things that eslint cannot do because it doesn’t know about markdown. It probably has some JSX rules that relate to JS. That we can have here as a JSX-relating-to-markdown rule.
Ah yes, that context was missing before. JSX-relating-to-markdown rules make sense.
Initial checklist
Problem
There’s a couple syntax extensions we’re pushing and generally supporting across the ecosystem. Some lint rules for those will help.
Solution
Alternatives
-