Skip to content

Commit 7f99cbc

Browse files
committed
explicit alwaysApply example
1 parent 405689b commit 7f99cbc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/docs/customize/deep-dives/rules.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,10 @@ Explore available rules [here](https://hub.continue.dev/explore/rules), or [crea
6262
Rules blocks can be simple text, written in YAML configuration files, or as Markdown (`.md`) files. They can have the following properties:
6363

6464
- `name` (**required** for YAML): A display name/title for the rule
65-
- `alwaysApply` (optional): Always include the rule, regardless of file context
6665
- `globs` (optional): When files are provided as context that match this glob pattern, the rule will be included. This can be either a single pattern (e.g., `"**/*.{ts,tsx}"`) or an array of patterns (e.g., `["src/**/*.ts", "tests/**/*.ts"]`).
66+
- `alwaysApply`: true - Always include the rule, regardless of file context
67+
- `alwaysApply`: false - Only include if globs exist AND match file context
68+
- `alwaysApply`: undefined - Default behavior: include if no globs exist OR globs exist and match
6769

6870
<Tabs groupId="rules-example">
6971
<TabItem value="md" label="Markdown">

0 commit comments

Comments
 (0)