Skip to content

Commit 441497a

Browse files
committed
Fix linter error
1 parent 254c505 commit 441497a

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/components/Static.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default function Static<T>(props: Props<T>) {
4444
setIndex(items.length);
4545
}, [items.length]);
4646

47-
const children = itemsToRender.map((item, itemIndex) => {
47+
const children = itemsToRender.map(async (item, itemIndex) => {
4848
return render(item, index + itemIndex);
4949
});
5050

src/dom.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export type DOMNode<T = {nodeName: NodeNames}> = T extends {
7474
: DOMElement
7575
: never;
7676

77+
// eslint-disable-next-line @typescript-eslint/naming-convention
7778
export type DOMNodeAttribute = boolean | string | number;
7879

7980
export const createNode = (nodeName: ElementNames): DOMElement => {

test/components.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ test('fail when text nodes are not within <Text> component', t => {
143143
let error: Error | undefined;
144144

145145
class ErrorBoundary extends Component<{children?: React.ReactNode}> {
146-
override render() {
146+
override async render() {
147147
return this.props.children;
148148
}
149149

@@ -172,7 +172,7 @@ test('fail when text node is not within <Text> component', t => {
172172
let error: Error | undefined;
173173

174174
class ErrorBoundary extends Component<{children?: React.ReactNode}> {
175-
override render() {
175+
override async render() {
176176
return this.props.children;
177177
}
178178

@@ -198,7 +198,7 @@ test('fail when <Box> is inside <Text> component', t => {
198198
let error: Error | undefined;
199199

200200
class ErrorBoundary extends Component<{children?: React.ReactNode}> {
201-
override render() {
201+
override async render() {
202202
return this.props.children;
203203
}
204204

0 commit comments

Comments
 (0)