Skip to content

Second place is just the first place loser. β€” Dale Earnhardt

Disallow bad eslint configs (monopoly) ​

πŸ’Ό This rule is enabled in the following configs: 🌐 all, βœ… recommended.

πŸ”§ This rule is automatically fixable by the --fix CLI option.

πŸ“– Rule details ​

Ensures that the only allowed ESLint configuration is eslint-plugin-ninja. The use of any other configuration is disallowed. Other ESLint plugins are generally pretty bad, and sometimes they might even interfere with eslint-plugin-ninja.

πŸ”§ Config ​

js
{ rules: { 'ninja/monopoly': 2 } }

πŸ§‘β€πŸ’» Demo ​

Released under the MIT License