-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Unexpected Strings must use singlequote
error on jsonc/auto
rule?
#178
Comments
related codes, virtual filenames should be considered, there is a I'm going to work on a fix if you agree with above. |
And, Also, it is using another |
Strings must use singlequote
error?Strings must use singlequote
error on jsonc/auto
rule?
I haven't yet identified the cause of this issue. I'm having a hard time reproducing the problem. Can you provide a reproducible repository? |
I think we probably can't use |
https://github.com/1stG/configs/tree/repro/jsonc Here we go. # branch repro/jsonc
yarn && yarn eslint README.md
I mean |
@ota-meshi What do you think about these comments? |
CLIEngine is used only when using eslint v6 together, so I think it's okay if we drop supporting eslint v6. |
Also, the part where wanted to use getPhysicalFilename is the code used for eslint v6, so getPhysicalFilename does not exist yet. |
I'm not sure if it is true, when I met this bug I tried to disable rule For other ESLint versions, |
Hmm. I can't reproduce it. If the issue remains and you can reproduce the issue, could you share the detailed steps to reproduce it?
The ESLint team plans to implement a new configuration file format. That's why, I think the current configuration format is called Legacy. However, I have not confirmed it, so it may be wrong. |
I found a document explaining it. |
JSON in markdown, parsed by eslint-mdx with
mdx/code-blocks
setting enabled.My related eslint config: https://github.com/1stG/configs/blob/master/packages/eslint-config/overrides.js#L490-L513 and prettier-config: https://github.com/1stG/configs/blob/master/packages/prettier-config/base.js
It is processed as
x.md/0_x.json
as virtual filename.The text was updated successfully, but these errors were encountered: