mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Enforce semicolons in eslint
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
1 parent
0f3f5611ba
commit
1477bb8274
531 files changed
+3979
-3975
No files matched your search
@@ -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";
|
||||
}
|
||||
Reference in new issue
Block a user