File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export default createRule("system", {
63
63
loc : node . startTag . loc . end ,
64
64
} )
65
65
if ( node . endTag ) {
66
- directives . enableBlock ( node . endTag . loc . start , isIgnoreRule , {
66
+ directives . disableBlock ( node . endTag . loc . start , isIgnoreRule , {
67
67
loc : node . endTag . loc . start ,
68
68
} )
69
69
}
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ describe("ignore-warnings", () => {
10
10
<script>
11
11
a+b;
12
12
</script>
13
+ {@html a+b}
14
+ {@debug a}
13
15
`
14
16
15
17
const linter = new eslint . ESLint ( {
@@ -63,6 +65,10 @@ describe("ignore-warnings", () => {
63
65
ruleId : "no-undef" ,
64
66
line : 5 ,
65
67
} ,
68
+ {
69
+ ruleId : "svelte/no-at-html-tags" ,
70
+ line : 7 ,
71
+ } ,
66
72
] ,
67
73
)
68
74
} )
@@ -73,6 +79,8 @@ describe("ignore-warnings", () => {
73
79
<script>
74
80
a+b;
75
81
</script>
82
+ {@html a+b}
83
+ {@debug a}
76
84
`
77
85
78
86
const linter = new eslint . ESLint ( {
@@ -122,6 +130,10 @@ describe("ignore-warnings", () => {
122
130
ruleId : "no-undef" ,
123
131
line : 5 ,
124
132
} ,
133
+ {
134
+ ruleId : "svelte/no-at-html-tags" ,
135
+ line : 7 ,
136
+ } ,
125
137
] ,
126
138
)
127
139
} )
@@ -133,6 +145,8 @@ describe("ignore-warnings", () => {
133
145
<script>
134
146
a+b;
135
147
</script>
148
+ {@html a+b}
149
+ {@debug a}
136
150
`
137
151
138
152
const linter = new eslint . ESLint ( {
You can’t perform that action at this time.
0 commit comments