0.1.2 • Published 5 months ago

eslint-plugin-never-disable v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Usage

Add the following options to your ESLint configuration file:

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:

// eslint-disable-next-line rule-to-never-disable
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rule 'rule-to-never-disable' should not be disabled. Explanation for why this is so.
NameDescription
rulesRuleCompletely bans disabling specific rules.

Contributors

💙 This package was templated with create-typescript-app.

0.1.2

5 months ago

0.1.1

5 months ago

0.1.0

5 months ago