Skip to content

v1.0.0

Compare
Choose a tag to compare
@QuiiBz QuiiBz released this 31 Aug 13:31
· 11 commits to main since this release

New unordered-dependencies rule

Dependencies should be ordered alphabetically to prevent complex diffs when installing a new dependency via a package manager. This rule is auto-fixable with --fix:

Screenshot 2024-08-31 at 14 22 09

Automatically run your package manager's install command when autofixing

When running Sherif with --fix, your lockfile might need to be refreshed (e.g. when a dependency version is updated, or moved from normal dependencies to devDependencies). Sherif will now automatically run your package manager's install command for you.

Your package manager is auto-detected based on its lockfile - if none is found, Sherif will ask you to choose one. The following package managers are supported:

  • NPM
  • PNPM
  • Yarn
  • Bun

This feature is disabled in CI environments, and can be disabled with the --no-install flag.

Support nested packages in the workspace using **

Sherif now supports expanding packages defined in the workspace using **. For example, packages/**/* is now a supported syntax:

{
  "name": "example-workspace",
  "workspaces": [
    "packages/*", // already supported
    "packages/**/*" // new!
  ]
}

What's Changed

  • fix: nested ignored packages by @QuiiBz in #91
  • feat: expand nested packages by @QuiiBz in #92
  • feat: new unordered-dependencies rule by @QuiiBz in #94
  • feat: automatic package manager install when autofixing by @Willem-Jaap in #71

Full Changelog: v0.11.0...v1.0.0