Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ import configs from "eslint-config-webpack/configs.js";
export default defineConfig([
{
extends: [configs["recommended-dirty"]],
rules: {
"unicorn/no-array-sort": "off",
},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not do it, we should fix it, eslint rules should be not suppressed, that they rules without the real problems

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use toSorted instead but it will impact performance, so that's why this is a lint change instead

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How it impacts performance?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use it in many places

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

toSorted created a copy instead of modifying/mutating the array, so more memory will be used.

https://dev.to/sundarbadagala081/sort-vs-tosorted-3gmi

@alexander-akait alexander-akait Aug 31, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it means we may have a potential problem/bug and code should be rewritten, never disable rules like because you want, each disabling should have a comment and why it was disabled, and where and how it should be resolve in future, it is very bad practice just disable

},
]);
48 changes: 12 additions & 36 deletions package-lock.json

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

Loading