Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
baseballyama committed Dec 1, 2024
1 parent 74240d2 commit 16c9545
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/parser/style-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface StyleContextUnknownLang {
*/
export function parseStyleContext(
styleElement: SvelteStyleElement | undefined,
ctx: Context
ctx: Context,
): StyleContext {
if (!styleElement || !styleElement.endTag) {
return { status: "no-style-element" };
Expand Down Expand Up @@ -67,7 +67,7 @@ export function parseStyleContext(
}
const styleCode = ctx.code.slice(
styleElement.startTag.range[1],
styleElement.endTag.range[0]
styleElement.endTag.range[0],
);
try {
sourceAst = parseFn(styleCode, {
Expand Down Expand Up @@ -110,7 +110,7 @@ export function styleNodeLoc(node: Node): Partial<SourceLocation> {
* Extracts a node range (like that of any ESLint node) from a parsed svelte style node.
*/
export function styleNodeRange(
node: Node
node: Node,
): [number | undefined, number | undefined] {
if (node.source === undefined) {
return [undefined, undefined];
Expand Down

0 comments on commit 16c9545

Please sign in to comment.