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.

feat: line specific rule toggling

See original GitHub issue

Like other linters, ember-template-lint should allow users to enable and disable rules per line:

{{! template-lint-enable-line bare-strings }}

{{! template-lint-disable-line bare-strings }}

{{! template-lint-enable-next-line bare-strings }}

{{! template-lint-disable-next-line bare-strings }}

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:17 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
rwjbluecommented, Dec 6, 2018

It is documented in this section of the README though maybe we need to make it even clearer. Would definitely like help.


An instruction will apply to all later siblings and their descendants:

<!-- disable for <p> and <span> and their contents, but not for <div> or <hr> -->
<div>
  <hr>
  {{! template-lint-disable }}
  <p>
    <span>Hello!</span>
  </p>
</div>

An in-element instruction will apply to only that element:

<!-- enable for <p>, but not for <div>, <hr> or <span> -->
<div>
  <hr>
  <p {{! template-lint-enable }}>
    <span>Hello!</span>
  </p>
</div>

An in-element instruction with the -tree suffix will apply to that element and all its descendants:

<!-- configure for <p>, <span> and their contents, but not for <div> or <hr> -->
<div>
  <hr>
  <p {{! template-lint-configure-tree block-indentation "tab" }}>
    <span>Hello!</span>
  </p>
</div>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature Toggles (aka Feature Flags) - Martin Fowler
In this article on Feature Toggling we'll start off with a short story showing some typical scenarios where Feature Toggles are helpful. Then...
Read more >
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 >
6.1. Rules Format — Suricata 6.0.0 documentation
This Suricata Rules document explains all about signatures; how to read, adjust and ... Rule options have a specific ordering and changing their...
Read more >
Ultimate Guide to Line Movement in Sports Betting
Wondering why sports betting lines like point spreads and moneylines move leading up to the game? Read our easy guide for line movement...
Read more >
Employee Reclassification: Changing FT or PT Status
Full-time (FT) or part-time (PT) employee reclassification is sometimes necessary for a valid business reason. Here's how employers should approach it.
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