Add a way to disable a plugin
See original GitHub issueThe 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:
- Created 3 years ago
- Reactions:1
- Comments:15 (15 by maintainers)
Top 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 >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
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?
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.