Commit 35b36e0
authored
docs(linter): Add configuration option docs for eslint/no-eval rule. (#15015)
These docs already existed, but were not using the standard format.
Part of #14743.
Generated docs:
```md
## Configuration
This rule accepts a configuration object with the following properties:
### allowIndirect
type: `boolean`
default: `true`
This `allowIndirect` option allows indirect `eval()` calls.
Indirect calls to `eval`(e.g., `window['eval']`) are less dangerous
than direct calls because they cannot dynamically change the scope.
Indirect `eval()` calls also typically have less impact on performance
compared to direct calls, as they do not invoke JavaScript's scope chain.
```1 parent d222b85 commit 35b36e0
1 file changed
+11
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | | - | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
20 | 28 | | |
21 | 29 | | |
22 | 30 | | |
| |||
77 | 85 | | |
78 | 86 | | |
79 | 87 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 88 | | |
102 | 89 | | |
103 | | - | |
| 90 | + | |
| 91 | + | |
104 | 92 | | |
105 | 93 | | |
106 | 94 | | |
| |||
0 commit comments