question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

eslint-disable-* Has No Effect on Single Line Script

See original GitHub issue

Thank 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:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
BenoitZugmeyercommented, May 21, 2017

I released a beta version of eslint-plugin-html, you can test it with npm install eslint-plugin-html@next. I’ll release a final version after eslint 4 is released.

Changes are listed here.

1reaction
BenoitZugmeyercommented, Mar 14, 2017

Thank you very much for the report. I’m AFK right know, I will fix this next week!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found