We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 988fe74 commit aab069bCopy full SHA for aab069b
packages/eslint-plugin-svelte/src/rules/block-lang.ts
@@ -66,7 +66,7 @@ export default createRule('block-lang', {
66
67
const scriptOption: string | null | (string | null)[] = context.options[0]?.script ?? null;
68
const allowedScriptLangs: (string | null)[] = Array.isArray(scriptOption)
69
- ? scriptOption.filter((lang) => lang != null && lang !== '')
+ ? scriptOption
70
: [scriptOption];
71
const scriptNodes: SvelteScriptElement[] = [];
72
0 commit comments