-
-
Notifications
You must be signed in to change notification settings - Fork 85
Description
Bug Report Checklist
- I have tried restarting my IDE and the issue persists.
- I have pulled the latest
mainbranch of the repository. - I have searched for related issues and found none that matched my issue.
Overview
https://github.com/sindresorhus/eslint-plugin-unicorn has a lot of great rules in it. The plugin:unicorn/recommended plugin in particular has a non-zero density of rules that catch dangerous bugs.
Example of a good objective logical rule: unicorn/no-instanceof-array flags dangerous uses of ... instanceof Array that should be replaced with Array.isArray(...).
However! Not every rule in plugin:unicorn/recommended is purely logical. Some are opinionated stylistic ones - which I wouldn't want to enable in this plugin.
Example of an opinionated logical rule: unicorn/expiring-todo-comments. It's a good idea and I like that folks are enabling it. But I think it'd be too opinionated for a general-purpose template like this one. Even the --base everything / stylistic-enabled options.
Let's:
- File an issue (if one doesn't already exist) on
eslint-plugin-stylisticto make a preset config that only has the objective logical rules: Addunopinionatedpreset sindresorhus/eslint-plugin-unicorn#896 - Send a PR (if one doesn't already exist) to
eslint-plugin-stylisticto add that preset config: add unopinionated preset sindresorhus/eslint-plugin-unicorn#2182 - Wait for the PR to be implemented - helping if possible
- Use that preset config here
Additional Info
No response