Skip to main content
Checks are defined your project configuration file. You can use selectors to run checks against all the packages in your project or a subset of packages. Checks as paths to check objects that can be defined locally in your project or as exports from a package.
Paths must resolve to a file that has a check object as it’s default export

Checks local to your project

You can configure paths to files relative to the .commonality/config.json file.
You can omit the ./ prefix when configuring checks local to your project.
.commonality/config.json

Checks exported from a package

You can configure paths that resolve to files exported from a package. We use import-meta-resolve to resolve import paths.
Packages prefixed with commonality-checks- can omit the prefix as a shorthand when configuring checks.
.commonality/config.json

Validating checks

You can view the status of your checks by running the check command.