Add ability to disable specific rule(s) for specific file(s)
See original GitHub issueHello, I’m working on the ESLint project, which uses this module. In general, we want to prohibit tabs in our markdown (using rule MD010), but there is one file where I need to use tabs in an example of the indent
rule. Is there a way to turn off just that rule, for just that file? If not, is that a feature you would consider adding?
Issue Analytics
- State:
- Created 8 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Turning off eslint rule for a specific file - Stack Overflow
1) Disabling "All rules" · You can go with 1.2 and add /* eslint-disable */ on top of the files, one by one....
Read more >Ability to disable specific Sonar rules on specific lines of code?
But if I know it can't be, I want to put an @SuppressWarnings("squid:RULEID") in front of this line of code to suppress that...
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 >Create custom actions rules in Outlook for Windows
Note: A rule with a custom action runs only on the computer where it is installed and only when Outlook is running. Click...
Read more >How to turn off ESLint rule via config file or via javascript
How to turn off an ESLint rule from the .eslintrc config file. To disable specific rules from the .eslintrc file you have to...
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
See here for how to use the new functionality: https://github.com/DavidAnson/markdownlint#configuration
I believe this implementation addresses most of the scenarios @IanVS outlined with the exception of a single comment to disable a rule for a single line only. I know how I would implement that, but didn’t want to complicate the initial implementation because it’s just a shorthand convenience.
👍 Thanks! I will test this out in the next few days.