Examples

Basic usage

The file .gitignore must inline a line with the content /dist/.

style = "style.json"

Project config self configuration

Asserts that project-config is defining a valid configuration, forcing the definition of styles as an array for styles and a valid cache value.

style = ["style.json5"]
cache = "5 minutes"

Files absence

The files readme.md and index.md must not exist.

style = "style.yaml"

Conditionals

If .gitignore includes the line __pycache__/ a pyproject.toml file must be present.

style = "style.json"

Tip

For more complex examples check my own styles at mondeja/project-config-styles.