-
-
Notifications
You must be signed in to change notification settings - Fork 696
Commit c98c01e
committed
feat: Add ignorePattern to no-v-html
This allows configuring the rule such that certain variables are allowed
in v-html=. For instance, we would like to allowlist variables named
"*Html" (as in the test), where the name already marks them as
containing safe HTML that’s expected to be used with v-html=.1 parent 6f1fae3 commit c98c01e
File tree
3 files changed
+34
-1
lines changed- .changeset
- lib/rules
- tests/lib/rules
3 files changed
+34
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 | + | ||
7 | 8 |
| |
8 | 9 |
| |
9 | 10 |
| |
| |||
14 | 15 |
| |
15 | 16 |
| |
16 | 17 |
| |
17 | - | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
18 | 26 |
| |
19 | 27 |
| |
20 | 28 |
| |
21 | 29 |
| |
22 | 30 |
| |
23 | 31 |
| |
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | ||
37 | + | ||
24 | 38 |
| |
25 | 39 |
| |
26 | 40 |
| |
41 | + | ||
42 | + | ||
43 | + | ||
27 | 44 |
| |
28 | 45 |
| |
29 | 46 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
31 | + | ||
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | ||
31 | 36 |
| |
32 | 37 |
| |
33 | 38 |
| |
| |||
45 | 50 |
| |
46 | 51 |
| |
47 | 52 |
| |
53 | + | ||
54 | + | ||
55 | + | ||
56 | + | ||
57 | + | ||
58 | + | ||
48 | 59 |
| |
49 | 60 |
| |
50 | 61 |
|
0 commit comments