Skip to content

Commit

Permalink
build: fix eslint ally warnings post upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
umaranis committed Jan 9, 2024
1 parent 48f4f0b commit 48ebe6a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<svg id="close" on:click viewBox="0 0 12 12">
<circle cx="6" cy="6" r="6" />
<line x1="3" y1="3" x2="9" y2="9" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
</script>

<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
<dialog
bind:this={dialog}
on:close={() => (showModal = false)}
on:click|self={() => dialog.close()}>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div on:click|stopPropagation>
<slot />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
}
</script>

<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="dropdown" bind:this={dropDownRef} on:keydown={handleKeyDown}>
<slot />
</div>
2 changes: 1 addition & 1 deletion packages/svelte-lexical/src/core/ContentEditable.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
<script lang="ts">
import './ContentEditable.css';
import type {LexicalEditor} from 'lexical';
Expand Down Expand Up @@ -40,6 +39,7 @@
});
</script>

<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
<div
aria-activedescendant={!isEditable ? undefined : ariaActiveDescendantID}
aria-autocomplete={!isEditable ? 'none' : ariaAutoComplete}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
export let initialEditorState: InitialEditorStateType | null = null;
let isReloadingDoc = false;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
let doc = docMap.get(id);
//const binding = createBinding(editor, provider, id, doc, docMap);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!-- svelte-ignore a11y-click-events-have-key-events -->
<script lang="ts">
import './FloatingLinkEditor.css';
import {$isLinkNode as isLinkNode, TOGGLE_LINK_COMMAND} from '@lexical/link';
Expand Down Expand Up @@ -181,6 +180,7 @@
monitorInputInteraction(event);
}} />
<div>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div
class="link-cancel"
role="button"
Expand All @@ -189,6 +189,7 @@
on:click={() => {
$isEditMode = false;
}} />
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div
class="link-confirm"
role="button"
Expand All @@ -211,6 +212,7 @@
editedLinkUrl = linkUrl;
$isEditMode = true;
}} />
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div
class="link-trash"
role="button"
Expand Down

0 comments on commit 48ebe6a

Please sign in to comment.