Disable linter via HTML comment
- Dominant language
- Python
- Stars
- 51
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
Is there a functionality to temporarily disable the linter for a block of HTML code?
I have some unavoidable errors that I'd like to suppress. I render some HTML with a syntax highlighter (ruby rouge), and the indentation is off. What would be useful is this:
```
... pretty HTML ...
... some ugly HTML ...
... more pretty HTML
```
Note: This syntax is taken directly from the [SCSS linter](https://github.com/brigade/scss-lint#disabling-linters-via-source).
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names no files or tests; start by locating how the linter parses HTML comments and applies the Indentation rule. Check the existing rule-suppression behavior, then test the sample disable/enable markers. Done means the named rule is suppressed only between the markers while other linting continues.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html, python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100