-
Notifications
You must be signed in to change notification settings - Fork 141
Lint code fences in markdown files? #779
Comments
Both locally and globally installed
|
This should work just fine if you add the right scope, the default Markdown language in Atom marks Markdown files as Another thing to note is that the blocks need to be "real" embedded blocks, your example has the ` commented out so it reads as plain Markdown text. Tested with the following files: linter-eslint_GH779.zip |
@Arcanemagus i commented out them because can't be shown correctly here at the issue. They are real. edit: I mean how to show code fence block in code fence block here at the issue? :D That's why i did it that way. |
I figured, since your CLI results would be impossible otherwise 😛. Does this work properly for you if you change the scope to |
I'll try. |
Hm. I have A bit later. Ooh, okey I set the "scopes": [
"source.js",
"source.jsx",
"source.js.jsx",
"source.babel",
"source.js-semantic",
"source.md",
"source.gfm",
"source.markdown"
], but it shows me an error |
I also tried to remove the others edit: Restarted the Atom, same. |
Doh! My fault. Didn't include the markdown plugin in the config, no i see the correct style errors like But there is another issue. It seems it not auto fix the errors? I'll open another issue. |
Issue Type
Question / Bug
Issue Description
I'm not sure if the issue is for here, actually.
I have
.eslintrc
and have just
linter
andlinter-eslint
packages. When run eslint from CLI it reports them as expected. But when typing in the markdown file it does not report any errors as like in the javascript files. So it seems it does not detects or respects theeslint-plugin-markdown
?I also added
source.md
in thelinter-eslint
settings.Bug Checklist
eslint
CLI gives the proper result, whilelinter-eslint
does not - yesLinter Eslint: Debug
command from the Command Palette belowthe tested markdown file
eslint cli
The text was updated successfully, but these errors were encountered: