Enforce semicolons in eslint

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
Panu Horsmalahti committed 2020-11-19 16:35:04 +02:00
1 parent 0f3f5611ba
commit 1477bb8274
531 files changed
+3979 -3975

No files matched your search

+2 -2
View File
@@ -1,9 +1,9 @@
// Type guard for checking valid react node to use in render
import React, { ReactNode } from "react"
import React, { ReactNode } from "react";
export function isReactNode(node: ReactNode): node is ReactNode {
return React.isValidElement(node)
|| Array.isArray(node) && node.every(isReactNode)
|| node == null
|| typeof node !== "object"
|| typeof node !== "object";
}