Skip to content

Commit 7ca500d

Browse files
committed
lint
1 parent e73167d commit 7ca500d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

eslint.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,16 @@ export default [
3333
ignores: [
3434
'**/*.d.ts',
3535
'**/tests',
36+
'packages/svelte/scripts/process-messages/templates/*.js',
37+
'packages/svelte/src/compiler/errors.js',
3638
'packages/svelte/compiler/index.js',
3739
// documentation can contain invalid examples
3840
'documentation',
3941
// contains a fork of the REPL which doesn't adhere to eslint rules
4042
'sites/svelte-5-preview/**',
4143
// wasn't checked previously, reenable at some point
42-
'sites/svelte.dev/**'
44+
'sites/svelte.dev/**',
45+
'tmp/**'
4346
]
4447
}
4548
];

packages/svelte/src/compiler/phases/1-parse/state/element.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,9 +406,6 @@ function read_tag_name(parser) {
406406
if (meta_tags.has(name)) return name;
407407

408408
if (name.startsWith('svelte:')) {
409-
const match = fuzzymatch(name.slice(7), valid_meta_tags);
410-
if (match === null) {
411-
}
412409
const list = `${valid_meta_tags.slice(0, -1).join(', ')} or ${valid_meta_tags[valid_meta_tags.length - 1]}`;
413410
e.invalid_svelte_tag(start, list);
414411
}

0 commit comments

Comments
 (0)