eslint-disable-* Has No Effect on Single Line Script
See original GitHub issueThank you for the great plugin! I’m a new user and found a very minor issue. eslint-disable-*
comments don’t work on script
opening and closing tags that appear on the same line:
<script>SystemJS.import('/index.js') // eslint-disable-line no-undef</script>
The following alternatives all work fine:
<script>
// eslint-disable-next-line no-undef
SystemJS.import('/index.js')
</script>
<script>
SystemJS.import('/index.js') // eslint-disable-line no-undef
</script>
<script>SystemJS.import('/index.js') // eslint-disable-line no-undef
</script>
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Turning off eslint rule for a specific line - Stack Overflow
To disable next line: // eslint-disable-next-line no-use-before-define var thing = new Thing();. Or use the single line syntax:
Read more >How to disable ESLint for some lines, files or folders
Ignore multiple files or folders To turn off ESLint in the whole file, you can add /* eslint-disable */ in the first line...
Read more >Rules - ESLint - Pluggable JavaScript Linter
Rules are the core building block of ESLint. A rule validates if your code meets a certain expectation, and what to do if...
Read more >eslint-plugin-unicorn/no-abusive-eslint-disable.md at main
If you want to disable an ESLint rule in a file or on a specific line, you can add a comment. On a...
Read more >eslint-plugin-jsdoc - npm
Note: This has no effect with the rule check-access (whose purpose ... or jsdoc (the default unless the @typescript-eslint parser is in use ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I released a beta version of
eslint-plugin-html
, you can test it withnpm install eslint-plugin-html@next
. I’ll release a final version aftereslint 4
is released.Changes are listed here.
Thank you very much for the report. I’m AFK right know, I will fix this next week!