Skip to content

Commit

Permalink
Update eslint-plugin-unicorn, add new rule
Browse files Browse the repository at this point in the history
  • Loading branch information
EvgenyOrekhov committed Jun 25, 2024
1 parent 05c0cb0 commit c7155af
Show file tree
Hide file tree
Showing 4 changed files with 190 additions and 198 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The most strict (yet practical) ESLint config.
Aims to include as many plugins and rules as possible to make your code
extremely consistent and robust.

**53 plugins. 1341 rules.**
**53 plugins. 1342 rules.**

## Usage

Expand Down Expand Up @@ -205,7 +205,7 @@ Base framework-agnostic config.
| Plugin | Enabled rules |
| --------------------------------------------------------------------------------------------------------- | ------------: |
| [ESLint core rules](https://eslint.org/docs/rules/) | 173 |
| [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) | 102 |
| [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) | 103 |
| [eslint-plugin-regexp](https://github.com/ota-meshi/eslint-plugin-regexp) | 80 |
| [eslint-plugin-putout](https://github.com/coderaiser/putout/tree/master/packages/eslint-plugin-putout) | 76 |
| [eslint-plugin-sonar](https://github.com/un-ts/eslint-plugin-sonar) | 51 |
Expand All @@ -230,7 +230,7 @@ Base framework-agnostic config.
| [eslint-plugin-json](https://github.com/azeemba/eslint-plugin-json)¹ | 1 |
| [eslint-plugin-yml](https://github.com/ota-meshi/eslint-plugin-yml)¹ | 1 |
| [eslint-plugin-toml](https://github.com/ota-meshi/eslint-plugin-toml)¹ | 1 |
| **Total:** | **644** |
| **Total:** | **645** |

¹ json/yml/toml plugins actually include several rules, but I consider each
plugin as a single "no-invalid" rule.
Expand Down
3 changes: 2 additions & 1 deletion base.json
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,8 @@
"unicorn/no-invalid-fetch-options": "error",
"unicorn/no-magic-array-flat-depth": "error",
"unicorn/prefer-structured-clone": "error",
"unicorn/prefer-array-find": "error",
"unicorn/no-negation-in-equality-check": "error",

"unicorn/filename-case": [
"error",
Expand Down Expand Up @@ -585,7 +587,6 @@
}
],
"unicorn/prefer-export-from": ["error", { "ignoreUsedVariables": true }],
"unicorn/prefer-array-find": ["error", { "checkFromLast": true }],

"array-func/from-map": "error",
"array-func/prefer-array-from": "error",
Expand Down
Loading

0 comments on commit c7155af

Please sign in to comment.