Skip to content

Commit 814a8bb

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

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

website/docs/en/config/index.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,28 @@ 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": [
62+
"./src/**",
63+
"./tests/**",
64+
],
65+
}
66+
```
67+
68+
Patterns support:
69+
70+
- **Glob patterns**: `*.js`, `**/*.ts`
71+
- **Directory patterns**: `src/**`, `tests/**`
72+
- **Negation**: `!important.ts` (when used with other patterns)
73+
5274
### ignores
5375

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

0 commit comments

Comments
 (0)