From 5ac6aa306ff1332270c812e1da5afbe2c8854b14 Mon Sep 17 00:00:00 2001 From: wackbyte Date: Tue, 4 Jun 2024 03:44:31 -0400 Subject: [PATCH] fix: add `unused-export-let` to legacy lint replacements (#11896) Closes #11890 --- .changeset/tidy-deers-hope.md | 5 +++++ packages/svelte/src/compiler/utils/extract_svelte_ignore.js | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/tidy-deers-hope.md diff --git a/.changeset/tidy-deers-hope.md b/.changeset/tidy-deers-hope.md new file mode 100644 index 0000000000..960f362ffc --- /dev/null +++ b/.changeset/tidy-deers-hope.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: add `unused-export-let` to legacy lint replacements diff --git a/packages/svelte/src/compiler/utils/extract_svelte_ignore.js b/packages/svelte/src/compiler/utils/extract_svelte_ignore.js index aa2d2d3f95..ff440d4c41 100644 --- a/packages/svelte/src/compiler/utils/extract_svelte_ignore.js +++ b/packages/svelte/src/compiler/utils/extract_svelte_ignore.js @@ -12,7 +12,8 @@ const replacements = { 'invalid-html-attribute': 'attribute_invalid_property_name', 'a11y-structure': 'a11y_figcaption_parent', 'illegal-attribute-character': 'attribute_illegal_colon', - 'invalid-rest-eachblock-binding': 'bind_invalid_each_rest' + 'invalid-rest-eachblock-binding': 'bind_invalid_each_rest', + 'unused-export-let': 'export_let_unused' }; /**