mdx-js / eslint-mdx

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

Parsing error mdx: Missing semicolon #453

Closed Manubi closed 1 year ago

Manubi commented 1 year ago

Initial checklist

Affected packages and versions

eslint: 8.32.0, eslint-config-next: 13.2.3

Link to runnable example

https://github.com/Manubi/manuelbichler.com

Steps to reproduce

Just pull the repo and go into src/pages/articles.

Expected behavior

There shouldn't be an error.

Actual behavior

Displays Parsing error: Missing semicolon. CleanShot 2023-03-07 at 10 11 04

Runtime

Node v16

Package manager

npm v8

OS

macOS

Build and bundle tools

Next.js

ChristianMurphy commented 1 year ago

@Manubi the reproduction you shared shows as 404 not found, did you make it private or delete it?

Manubi commented 1 year ago

@ChristianMurphy sorry my bad. Made it public.

ChristianMurphy commented 1 year ago

@Manubi I'm a bit confused, you aren't using ESLint MDX, and looking at git history have never used it. https://github.com/Manubi/manuelbichler.com/blob/c66216f69d35067beed086cbefd87bc8656e19f2/.eslintrc.json#L2

The solution if you'd like MDX to be parsed by ESlint is to, add eslint-plugin-mdx following the guide from the README https://github.com/mdx-js/eslint-mdx/tree/master/packages/eslint-plugin-mdx