Skip to content

Commit

Permalink
Replace eslint-plugin-sort-exports by eslint-plugin-perfectionist
Browse files Browse the repository at this point in the history
The `eslint-plugin-sort-exports` plugin doesn't support ESLint 9 or has
published plans to do so. The `eslint-plugin-perfectionist` does support
ESLint 9 [1], seems more actively maintained [2, 3] and contains other
rules that could be interesting later on [4]. Note that both plugins
behave the same, except for two cases which are updated here.

[1] azat-io/eslint-plugin-perfectionist#154
[2] https://github.com/azat-io/eslint-plugin-perfectionist/commits/main
[3] https://www.npmjs.com/package/eslint-plugin-perfectionist?activeTab=versions
[4] https://perfectionist.dev/rules
  • Loading branch information
timvandermeij committed Oct 20, 2024
1 parent f9659f4 commit 347f155
Show file tree
Hide file tree
Showing 5 changed files with 240 additions and 154 deletions.
7 changes: 3 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"import",
"json",
"no-unsanitized",
"sort-exports",
"perfectionist",
"unicorn",
],

Expand Down Expand Up @@ -45,9 +45,8 @@
}],
"no-unsanitized/method": "error",
"no-unsanitized/property": "error",
"sort-exports/sort-exports": ["error", {
"ignoreCase": true,
}],
"perfectionist/sort-exports": "error",
"perfectionist/sort-named-exports": "error",
"unicorn/no-abusive-eslint-disable": "error",
"unicorn/no-array-push-push": "error",
"unicorn/no-instanceof-array": "error",
Expand Down
Loading

0 comments on commit 347f155

Please sign in to comment.