Commit c80da95
docs(linter): Add configuration docs to no-useless-escape lint rule. (#14791)
Also add missing text for "Why is this bad?" section. I've updated this
to use the autogen docs rather than an explicit Options section, since
that seems to be the preferred implementation path for this kind of
addition.
Part of #14743.
Results in:
```md
## Configuration
This rule accepts a configuration object with the following properties:
### allowRegexCharacters
type: `string[]`
default: `[]`
An array of characters that are allowed to be escaped unnecessarily in regexes.
```
---------
Signed-off-by: Connor Shea <[email protected]>
Co-authored-by: Copilot <[email protected]>1 parent 7b64f27 commit c80da95
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
37 | | - | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
| |||
81 | 87 | | |
82 | 88 | | |
83 | 89 | | |
84 | | - | |
| 90 | + | |
| 91 | + | |
85 | 92 | | |
86 | 93 | | |
87 | 94 | | |
| |||
0 commit comments