Skip to content

Commit

Permalink
Remove unused disable directives
Browse files Browse the repository at this point in the history
  • Loading branch information
ryota-ka committed Apr 3, 2024
1 parent 752aa48 commit 8bd5719
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/jsx-runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const canonicalizeVNodeData = (orig: VNodeData): VNodeData => {
if (key === '$attrs' || key === 'attrs') {
data.attrs = Object.assign(v, data.attrs ?? {});
} else if (key.startsWith('aria-')) {
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
data.attrs ??= {};
data.attrs[key] = v;
} else if (key === 'children') {
Expand All @@ -42,7 +41,6 @@ const canonicalizeVNodeData = (orig: VNodeData): VNodeData => {
data.dataset = Object.assign(v, data.dataset ?? {});
} else if (key.startsWith('data-')) {
const k = kebab2camel(key.replace('data-', ''));
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
data.dataset ??= {};
data.dataset[k] = v;
} else if (key === '$hook' || key === 'hook') {
Expand All @@ -63,7 +61,6 @@ const canonicalizeVNodeData = (orig: VNodeData): VNodeData => {
data.on[k] = v;
}
} else if (key === 'list' || key === 'role') {
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
data.attrs ??= {};
data.attrs[key] = v;
} else if (key === '$style' || key === 'style') {
Expand All @@ -72,7 +69,6 @@ const canonicalizeVNodeData = (orig: VNodeData): VNodeData => {
const mod = key.substring(1);
data[mod] = v;
} else {
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
data.props ??= {};
data.props[key] = v;
}
Expand Down Expand Up @@ -145,7 +141,6 @@ export const jsx = (tag: JSX.ElementType, data: { [index: string]: unknown }, ke
if (tag.length === 1) {
vnode = vnodify(tag(data));
} else {
// eslint-disable-next-line @typescript-eslint/naming-convention
const { children: _, ...props } = data;
const children = data['children'] as Snabbdom.Node;

Expand Down

0 comments on commit 8bd5719

Please sign in to comment.