Releases: QuiiBz/sherif
v1.10.0
JSON configuration in root package.json
When using many CLI arguments, it might be easier to move to the configuration format. In your root package.json, add a sherif field containing the same options as the CLI, but in camelCase. Default values are shown below:
--fail-on-warnings option
Add a new option --fail-on-warnings to exit with code 1 if any warning issues are found. By default, only error issues will make Sherif exit with code 1.
What's Changed
- feat: add
--fail-on-warningsoption by @QuiiBz in #141 - feat: add support for configuring via root
package.jsonby @QuiiBz in #146
Full Changelog: v1.9.0...v1.10.0
v1.9.0
Improved interactive --fix for multiple-dependency-versions rule
Running sherif --fix has been improved for the multiple-dependency-versions rule:
- design improvements, most notably the cursor doesn't render in the middle of a version anymore
- you can use vim keybinds to select the version
- the list of packages using each version is now rendered on the right
| Before | After |
|---|---|
![]() |
![]() |
What's Changed
Full Changelog: v1.8.0...v1.9.0
v1.8.0
v1.7.1
What's Changed
- chore: mention TypeScript support and add Bun as package manager by @QuiiBz in #136
- feat: log process spawn errors by @QuiiBz in #137
Full Changelog: v1.7.0...v1.7.1
v1.7.0
What's Changed
- [ci] update ubuntu to 22 again by @QuiiBz in #126
- feat: remove tanstack-query from
unsync-similar-depsrule by @QuiiBz in #134
Full Changelog: v1.6.1...v1.7.0
v1.6.1
New --select flag when autofixing with --fix
This release adds a new --select flag that accepts highest or lowest. When used in combination with --fix, it will bypass asking yo which dependency version to choose for the multiple-dependency-versions, and instead automatically select the highest or lowest dependency.
What's Changed
- feat: add
--select=highest/lowestfor autofix by @QuiiBz in #124 - [ci] update ubuntu to 22 by @QuiiBz in #125
Full Changelog: v1.5.0...v1.6.1
v1.5.0
What's Changed
- feat: add more prisma and lexical to similar deps by @DaniFoldi in #120
Full Changelog: v1.4.0...v1.5.0
v1.4.0
What's Changed
- docs: add storybook to similar deps by @QuiiBz in #118
- feat(similar-deps): add prisma, typescript-eslint, eslint stylistic and playwright by @DaniFoldi in #117
- feat: support
bun.lockfor automatic package manager resolution by @joshmeads in #119
New Contributors
- @DaniFoldi made their first contribution in #117
- @joshmeads made their first contribution in #119
Full Changelog: v1.3.0...v1.4.0
v1.3.0
What's Changed
- docs: fix unsync-similar-dependencies title size by @QuiiBz in #112
- fix: ignore hidden directories for
packages-without-package-jsonby @QuiiBz in #113 - feat: add
@trpc/*to similar dependency list by @msmps in #114 - feat(similar-deps): add storybook by @colinlienard in #116
New Contributors
Full Changelog: v1.2.0...v1.3.0
v1.2.0
New unsync-similar-dependencies rule
Similar dependencies in a given package.json should use the same version. For example, if you use both react and react-dom dependencies in the same package.json, this rule will enforce that they use the same version.
List of detected similar dependencies (feel free to open an issue/send a PR to add more)
react,react-domeslint-config-next,@next/eslint-plugin-next,@next/font@next/bundle-analyzer,@next/third-parties,@next/mdx,nexteslint-config-turbo,eslint-plugin-turbo,@turbo/gen,turbo-ignore,turbo@tanstack/eslint-plugin-query,@tanstack/query-async-storage-persister,@tanstack/query-broadcast-client-experimental,@tanstack/query-core,@tanstack/query-devtools,@tanstack/query-persist-client-core,@tanstack/query-sync-storage-persister,@tanstack/react-query,@tanstack/react-query-devtools,@tanstack/react-query-persist-client,@tanstack/react-query-next-experimental,@tanstack/solid-query,@tanstack/solid-query-devtools,@tanstack/solid-query-persist-client,@tanstack/svelte-query,@tanstack/svelte-query-devtools,@tanstack/svelte-query-persist-client,@tanstack/vue-query,@tanstack/vue-query-devtools,@tanstack/angular-query-devtools-experimental,@tanstack/angular-query-experimental
What's Changed
Full Changelog: v1.1.1...v1.2.0


{ "sherif": { "fix": false, "select": "highest", // "highest" | "lowest" "noInstall": false, "failOnWarnings": false, "ignoreDependency": [], // string[] "ignorePackage": [], // string[] "ignoreRule": [] // string[] } }