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 a way to disable a plugin

See original GitHub issue

The version of ESLint you are using.

v7.17.0

The problem you want to solve.

Disable a plugin in a shareable config.

Your take on the correct solution to problem.

Native support for the equivalent functionality of https://www.npmjs.com/package/eslint-plugin-disable.

e.g.

{
  "plugins": ["react", "disable"],
  "processor": "disable/disable",
  "overrides": [
    {
      "files": ["tests/**/*.test.js"],
      "settings": {
        "disable/plugins": ["react"]
      }
    }
  ]
}

Are you willing to submit a pull request to implement this change?

No.

CC @mradionov

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
nzakascommented, Feb 9, 2021

TSC Summary: This proposal seeks a way to disable a plugin that has been included by a shared config. Essentially, a way to say “I want the shared config except for this plugin it’s including.” Disabling the plugin would mean disabling all rules, unregistering processors, removing environments, etc.

TSC Question: Shall we accept this proposal?

1reaction
nzakascommented, Feb 4, 2021

Okay, thanks for the clarification. I’m still not seeing a clear use case for disabling a plugin. If a shared config is using a plugin you don’t want, it seems like that’s not the right config to extend from. Configs aren’t meant to be infinitely configurable, and were designed specifically to override or add, not to delete.

Maybe someone else on the team feels differently, but I’m not in favor of this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Disable WordPress Plugins (No Access to WP-Admin)
Browse into the plugins folder; Find the folder for the plugin you want to deactivate; Right-click on the folder and rename it to...
Read more >
How to Disable WordPress Plugins in 2022 (3 Ways)
To disable all of your plugins simultaneously, rename the /plugins folder plugins.disable. Disable a WordPress Plugin. If you want to manually ...
Read more >
How To Disable Plugins/Add-Ons/Extensions In Multiple ...
Click the menu icon "≡" at the top right of the browser window, choose More tools and choose Extensions to open the Extensions...
Read more >
How to Disable Plugin and Theme Updates and Installs in ...
Here's a quick tip that helps you to restrict access to the plugin and them update/install capability within WordPress.
Read more >
How to Deactivate All Plugins When Not Able to Access WP ...
You need to right-click the plugins folder and select 'Rename'. Next, change the name of the plugins folder to anything that you like....
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