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.

Add ability to disable specific rule(s) for specific file(s)

See original GitHub issue

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

github_iconTop GitHub Comments

2reactions
DavidAnsoncommented, Sep 27, 2015

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.

0reactions
IanVScommented, Sep 29, 2015

👍 Thanks! I will test this out in the next few days.

Read more comments on GitHub >

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

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