Skip to content

Workspace rules

Checks on the workspace layout: patterns that match nothing and directories without a manifest.

Rule Default severity Fixable
missing-package-manifest warning unsafe
unmatched-workspace-patterns warning unsafe

Fixable is safe (applied by --fix), unsafe (applied only by --fix-unsafe), sometimes (fixable for some findings) or none. See the CLI reference.

A directory matched by the workspace patterns has no package.json.

  • Default severity: warning
  • Fixable: unsafe
  • sherif name: packages-without-package-json
[rules]
missing-package-manifest = "warn"

A workspace pattern does not match any directory.

  • Default severity: warning
  • Fixable: unsafe
  • sherif name: non-existant-packages
[rules]
unmatched-workspace-patterns = "warn"