Skip to content

Commit 4bc5156

Browse files
🚝
1 parent 316bd5f commit 4bc5156

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

docs/pages/guide/config.mdx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ LinterConfig objects are validated against a [LinterConfigSchema](https://github
6161

6262
```ts
6363
export type LinterConfig = {
64-
files?: string[] // array of glob to search for source files
65-
ignores?: [] // array of glob to ignore for source files
64+
files?: string[] // array of globs to search for source files
65+
ignores?: [] // array of globs to ignore for source files
6666

6767
ruleFiles?: [] // array of globs to find project-specific rule md files
6868
ruleDefinitions?: RuleDefinition[] // custom rules (extensible to non-md formats)
@@ -76,6 +76,13 @@ export type LinterConfig = {
7676
// customize LLM model and provider options
7777
// most important are: model, weakModel, apiKey, and apiBaseUrl
7878
llmOptions?: LLMOptions
79+
80+
// optional, file/folder/glob-specific rule overrides
81+
overrides?: Array<{
82+
include?: string[] // array of glob files to apply this override to
83+
exclude?: string[] // array of glob files to exclude from this override
84+
rules?: Record<string, 'error' | 'warn' | 'off'>
85+
}>
7986
}
8087
```
8188

0 commit comments

Comments
 (0)