Commit 2c58952
committed
docs(linter): Add config docs for no-restricted-globals rule. (#15662)
Part of #14743.
Generated docs:
```md
## Configuration
This rule accepts a configuration object with the following properties:
### restrictedGlobals
type: `Record<string, string>`
default: `{}`
Objects in the format
`{ "name": "event", "message": "Use local parameter instead." }`, which define what globals
are restricted from use.
```
This is technically a positional argument and so should maybe be held back until we have a solution for documenting this kind of configuration option?1 parent f5ce55a commit 2c58952
File tree
2 files changed
+7
-2
lines changed- crates/oxc_linter
- src/rules/eslint
- tests
2 files changed
+7
-2
lines changedLines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
| |||
54 | 59 | | |
55 | 60 | | |
56 | 61 | | |
| 62 | + | |
57 | 63 | | |
58 | 64 | | |
59 | 65 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| |||
0 commit comments