Skip to content

Commit 1b1ad13

Browse files
committed
docs: update config doc to include files option
1 parent 3193306 commit 1b1ad13

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

website/docs/en/config/index.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,25 @@ The configuration file contains an array of configuration entries. Each entry de
4949

5050
## Configuration Options
5151

52+
### files
53+
54+
- **Type:** `string[]`
55+
- **Default:** `[]`
56+
57+
An array of glob patterns for files and directories to include during linting. If omitted, all files are included.
58+
59+
```jsonc
60+
{
61+
"files": ["./src/**", "./tests/**"],
62+
}
63+
```
64+
65+
Patterns support:
66+
67+
- **Glob patterns**: `*.js`, `**/*.ts`
68+
- **Directory patterns**: `src/**`, `tests/**`
69+
- **Negation**: `!important.ts` (when used with other patterns)
70+
5271
### ignores
5372

5473
- **Type:** `string[]`

0 commit comments

Comments
 (0)