Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joshuakgoldberg/eslint-plugin-never-disable

ESLint plugin to completely ban disabling specific rules. 🙅
https://github.com/joshuakgoldberg/eslint-plugin-never-disable

eslint eslint-plugin

Last synced: 3 months ago
JSON representation

ESLint plugin to completely ban disabling specific rules. 🙅

Awesome Lists containing this project

README

        

eslint-plugin-never-disable

ESLint plugin to completely ban disabling specific rules. 🙅




All Contributors: 2 👪


Codecov Test Coverage
Contributor Covenant
License: MIT
Style: Prettier
TypeScript: Strict
npm package version

## Archived

**Use [`eslint-comments/no-restricted-disable`](https://mysticatea.github.io/eslint-plugin-eslint-comments/rules/no-restricted-disable.html) instead.**

## Usage

Add the following options to your [ESLint configuration file](https://eslint.org/docs/latest/user-guide/configuring/configuration-files):

```js
module.exports = {
// ...
plugins: ["never-disable"],
rules: {
"never-disable/rules": [
"error",
{
rules: [
{
message: "Explanation for why this is so.",
rule: "rule-to-never-disable",
},
],
},
],
},
// ...
};
```

Then developers will receive the following error upon trying to disable a never-to-be-disabled rule:

```plaintext
// eslint-disable-next-line rule-to-never-disable
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rule 'rule-to-never-disable' should not be disabled. Explanation for why this is so.
```

| Name | Description |
| :--------------------------- | :---------------------------------------- |
| [rules](docs/rules/rules.md) | Completely bans disabling specific rules. |

## Contributors



Josh Goldberg ✨
Josh Goldberg ✨

💻 🖋 📖 🤔 🚇 🚧 📆 🔧 🐛
StyleShit
StyleShit

🐛 💻 📖 🤔

> 💙 This package was templated with [`create-typescript-app`](https://github.com/JoshuaKGoldberg/create-typescript-app).