Skip to content

Commit

Permalink
feat(sort-collections): should sort overrides (#668)
Browse files Browse the repository at this point in the history
<!-- πŸ‘‹ Hi, thanks for sending a PR to eslint-plugin-package-json! πŸ’–.
Please fill out all fields below and make sure each item is true and [x]
checked.
Otherwise we may not be able to review your PR. -->

## PR Checklist

-   [x] Addresses an existing open issue: fixes #619
- [x] That issue was marked as [`status: accepting
prs`](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)
- [x] Steps in
[CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/main/.github/CONTRIBUTING.md)
were taken 😊

## Overview

Adds `overrides` to the `defaultCollections`. Note that tests were not
added because `dependencies`/`devDependencies`/`peerDependencies` are
currently not tested.
  • Loading branch information
sasial-dev authored Nov 30, 2024
1 parent 36e68b7 commit 18129cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rules/sort-collections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const defaultCollections = [
"devDependencies",
"dependencies",
"peerDependencies",
"overrides",
"config",
"exports",
];
Expand Down

0 comments on commit 18129cd

Please sign in to comment.