-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.vue files cause parsing error after enabling plugin:mdx/recommended #251
Comments
|
Is this the correct setup then, without including overrides: [
{
files: ['*.mdx'],
extends: 'plugin:mdx/recommended',
},
], Could you please also elaborate on that by pointing me to the place in documentation where this is explained? I haven't found it in README#usage except some mentions of older versions, and I'd really appreciate if this could be covered for new users in some quick start section to serve as a reference, as the guide seems to assume at the moment that we don't combine multiple eslint extensions. Also is there a reason why anyone would prefer the |
Sorry for your confusing, the document could be improved in favor of cases like yours. When you are using some other parsers, you'd better to use |
@scscgit to answer your question: yes that's what you need to do. If it doesn't work, perhaps also install eslint-mdx and specify it as the parser in the overrides settings. If you are using typescript and specifically the plugin
In doing so, be sure to remove |
Subject of the issue
After enabling
"plugin:mdx/recommended"
extension in.eslintrc.js
,.vue
files of a Vue project suddenly start incorrectly reporting syntax error duringeslint --ext .js,.ts,.vue,.mdx --ignore-path .gitignore .
, even though this extension shouldn't affect.vue
files at all (at least I wasn't able to find anything similar in provided documentations after hours of searching).Your environment
yarn --version
is1.22.4
Steps to reproduce
-> A sample Nuxt project with minor modifications and additional (eslint) dependencies
yarn lint
in a new terminalExpected behaviour
Documentation of this library claims that it only affects
.mdx
files, so there should be no new sudden errors.Actual behaviour
The valid
.vue
files fail on lint. If you remove"plugin:mdx/recommended"
from.eslintrc.js
and try again, this time there's no error.The text was updated successfully, but these errors were encountered: