Skip to content

Commit 75a01a5

Browse files
committed
lint
1 parent 3441004 commit 75a01a5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/** @import { AST } from '#compiler' */
2+
/** @import { Context } from '../types' */
3+
import * as e from '../../../errors.js';
4+
5+
/**
6+
* @param {AST.SvelteBoundary} node
7+
* @param {Context} context
8+
*/
9+
export function SvelteBoundary(node, context) {
10+
for (const attribute of node.attributes) {
11+
if (attribute.type === 'SpreadAttribute') {
12+
e.illegal_element_attribute(attribute, 'svelte:boundary');
13+
}
14+
}
15+
16+
context.next();
17+
}

0 commit comments

Comments
 (0)