Skip to content

Commit

Permalink
fix: Sort switch cases when switch statement is an expression (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-j-castro authored Oct 17, 2024
1 parent 44d5e43 commit 6cff634
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ module.exports = {
{ groupKind: "required-first" },
],
"perfectionist/sort-objects": ["error", { destructureOnly: true }],
"perfectionist/sort-switch-case": "error",
"perfectionist/sort-union-types": [
"error",
{
Expand Down
11 changes: 6 additions & 5 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 @@ -35,7 +35,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-perfectionist": "^3.9.0",
"eslint-plugin-perfectionist": "^3.9.1",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.37.1",
"eslint-plugin-react-hooks": "^5.0.0",
Expand All @@ -53,7 +53,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-perfectionist": "^3.9.0",
"eslint-plugin-perfectionist": "^3.9.1",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.37.1",
"eslint-plugin-react-hooks": "^5.0.0",
Expand Down

0 comments on commit 6cff634

Please sign in to comment.