@@ -148,17 +148,17 @@ export default createRule("html-quotes", {
148148 }
149149
150150 /** Verify for standard attribute */
151- function verifyForValues ( attr : AST . SvelteAttribute ) {
151+ function verifyForValues (
152+ attr : AST . SvelteAttribute | AST . SvelteStyleDirective ,
153+ ) {
152154 const quoteAndRange = getAttributeValueQuoteAndRange ( attr , sourceCode )
153155 verifyQuote ( preferQuote , quoteAndRange )
154156 }
155157
156158 /** Verify for dynamic attribute */
157159 function verifyForDynamicMustacheTag (
158- attr : AST . SvelteAttribute ,
159- valueNode : AST . SvelteMustacheTag & {
160- kind : "text"
161- } ,
160+ attr : AST . SvelteAttribute | AST . SvelteStyleDirective ,
161+ valueNode : AST . SvelteMustacheTagText ,
162162 ) {
163163 const quoteAndRange = getAttributeValueQuoteAndRange ( attr , sourceCode )
164164 const text = sourceCode . text . slice ( ...valueNode . range )
@@ -192,7 +192,9 @@ export default createRule("html-quotes", {
192192 }
193193
194194 return {
195- SvelteAttribute ( node ) {
195+ "SvelteAttribute, SvelteStyleDirective" (
196+ node : AST . SvelteAttribute | AST . SvelteStyleDirective ,
197+ ) {
196198 if (
197199 node . value . length === 1 &&
198200 node . value [ 0 ] . type === "SvelteMustacheTag"
0 commit comments