Skip to content

Commit

Permalink
Upgrade eslint-plugin-unicorn to v56.0.0
Browse files Browse the repository at this point in the history
- Enable `unicorn/consistent-existence-index-check` as a warning.
- Enable `unicorn/no-length-as-slice-end` as a warning.
- Enable `unicorn/prefer-global-this` as a warning.
- Enable `unicorn/prefer-math-min-max` as a warning.
  • Loading branch information
amikheychik committed Nov 10, 2024
1 parent 1358126 commit 2dc1f6c
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 111 deletions.
180 changes: 71 additions & 109 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-sonarjs": "^1.0.4",
"eslint-plugin-testing-library": "^6.4.0",
"eslint-plugin-unicorn": "^54.0.0",
"eslint-plugin-unicorn": "^56.0.0",
"tslint": "^6.1.3"
},
"peerDependenciesMeta": {
Expand Down Expand Up @@ -117,7 +117,7 @@
"eslint-plugin-simple-import-sort": "12.1.1",
"eslint-plugin-sonarjs": "1.0.4",
"eslint-plugin-testing-library": "6.4.0",
"eslint-plugin-unicorn": "54.0.0",
"eslint-plugin-unicorn": "56.0.0",
"gulp": "^5.0.0",
"jest": "^29.7.0",
"prettier": "~3.3.3",
Expand Down
20 changes: 20 additions & 0 deletions src/rules/unicorn/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ The `link:https://github.com/sindresorhus/eslint-plugin-unicorn[eslint-plugin-un
| Yes
| Warning

| `link:{eslint-unicorn-rules}/consistent-existence-index-check.md[unicorn/consistent-existence-index-check]`
| Yes
| Yes
| Warning

| `link:{eslint-unicorn-rules}/consistent-function-scoping.md[unicorn/consistent-function-scoping]`
| Yes
|
Expand Down Expand Up @@ -173,6 +178,11 @@ The `link:https://github.com/sindresorhus/eslint-plugin-unicorn[eslint-plugin-un
|
| Off

| `link:{eslint-unicorn-rules}/no-length-as-slice-end.md[unicorn/no-length-as-slice-end]`
| Yes
| Yes
| Warning

| `link:{eslint-unicorn-rules}/no-lonely-if.md[unicorn/no-lonely-if]`
| Yes
| Yes
Expand Down Expand Up @@ -413,6 +423,11 @@ The `link:https://github.com/sindresorhus/eslint-plugin-unicorn[eslint-plugin-un
| Yes
| Warning

| `link:{eslint-unicorn-rules}/prefer-global-this.md[unicorn/prefer-global-this]`
| Yes
| Yes
| Warning

| `link:{eslint-unicorn-rules}/prefer-includes.md[unicorn/prefer-includes]`
| Yes
| Partially
Expand All @@ -433,6 +448,11 @@ The `link:https://github.com/sindresorhus/eslint-plugin-unicorn[eslint-plugin-un
| Suggestion
| Error

| `link:{eslint-unicorn-rules}/prefer-math-min-max.md[unicorn/prefer-math-min-max]`
| Yes
| Yes
| Warning

| `link:{eslint-unicorn-rules}/prefer-math-trunc.md[unicorn/prefer-math-trunc]`
| Yes
| Partially
Expand Down
Loading

0 comments on commit 2dc1f6c

Please sign in to comment.