Skip to content

Commit 64b0934

Browse files
chore(deps): update dependency eslint-plugin-svelte to v3 (#471)
* chore(deps): update dependency eslint-plugin-svelte to v3 * fix --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: yosuke ota <[email protected]>
1 parent 15053d9 commit 64b0934

File tree

4 files changed

+23
-20
lines changed

4 files changed

+23
-20
lines changed

docs-build/src/components/RightSidebar/TableOfContents.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<li class="header-link depth-2">
99
<a href="#overview">Overview</a>
1010
</li>
11-
{#each headings as header}
11+
{#each headings as header (header.slug)}
1212
{#if header.depth > 1 && header.depth < 4}
1313
<li class={`header-link depth-${header.depth}`}>
1414
<a href={`#${header.slug}`}>{header.text}</a>

docs-build/src/components/RightSidebar/ThemeToggleButton.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</script>
2828
2929
<div class="theme-toggle">
30-
{#each themes as t, i}
30+
{#each themes as t, i (t)}
3131
{@const checked = t === theme}
3232
<label class:checked>
3333
{#if i === 0}

docs-build/src/components/eslint/MonacoEditor.svelte

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -53,28 +53,31 @@
5353
setRightMarkers(rightMarkers)
5454
}
5555
}
56+
function setCodeActionsProvider(monaco) {
57+
codeActionProviderDisposable = monaco.languages.registerCodeActionProvider(
58+
language,
59+
{
60+
provideCodeActions(model, range, context) {
61+
const editor = getLeftEditor?.()
62+
if (editor?.getModel().url !== model.url) {
63+
return {
64+
actions: [],
65+
dispose() {
66+
/* nop */
67+
},
68+
}
69+
}
70+
return provideCodeActions(model, range, context)
71+
},
72+
},
73+
)
74+
}
5675
$: {
5776
// eslint-disable-next-line @typescript-eslint/no-unused-expressions -- reactive
5877
language
5978
disposeCodeActionProvider()
6079
if (provideCodeActions) {
61-
loadingMonaco.then((monaco) => {
62-
codeActionProviderDisposable =
63-
monaco.languages.registerCodeActionProvider(language, {
64-
provideCodeActions(model, range, context) {
65-
const editor = getLeftEditor?.()
66-
if (editor?.getModel().url !== model.url) {
67-
return {
68-
actions: [],
69-
dispose() {
70-
/* nop */
71-
},
72-
}
73-
}
74-
return provideCodeActions(model, range, context)
75-
},
76-
})
77-
})
80+
loadingMonaco.then(setCodeActionsProvider)
7881
}
7982
}
8083
$: {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
"eslint-plugin-node-dependencies": "^0.12.0",
117117
"eslint-plugin-prettier": "^5.0.0",
118118
"eslint-plugin-regexp": "^2.5.0",
119-
"eslint-plugin-svelte": "^2.36.0",
119+
"eslint-plugin-svelte": "^3.0.0",
120120
"eslint-plugin-yml": "^1.0.0",
121121
"expect-type": "^1.0.0",
122122
"js-yaml": "^4.1.0",

0 commit comments

Comments
 (0)