Changesets · Branches · Tags · Compare
| Changeset | be26cc4523c94901d9cd910cb7aa828d666cd03c3b97eb2010a3d95fc081b14d |
|---|---|
| Author | Brian 'bdougie' Douglas <brian@opensauced.pizza> · 2025-06-10 15:28 -07:00 |
| Committer | Brian 'bdougie' Douglas <brian@opensauced.pizza> · 2025-06-10 15:28 -07:00 |
| Parents | 2b64f41d7009 |
1 file changed
modified docs/docs/customize/deep-dives/rules.mdx +3 −1
| @@ -62,8 +62,10 @@ | ||
| 62 | 62 | Rules blocks can be simple text, written in YAML configuration files, or as Markdown (`.md`) files. They can have the following properties: |
| 63 | 63 | |
| 64 | 64 | - `name` (**required** for YAML): A display name/title for the rule |
| 65 | -- `alwaysApply` (optional): Always include the rule, regardless of file context | |
| 66 | 65 | - `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 | |
| 67 | 69 | |
| 68 | 70 | <Tabs groupId="rules-example"> |
| 69 | 71 | <TabItem value="md" label="Markdown"> |