mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 06:47:33 +00:00
[automated] Apply ESLint and Prettier fixes
This commit is contained in:
@@ -206,9 +206,7 @@ function compareItems(prev, curr, category) {
|
||||
})
|
||||
}
|
||||
|
||||
if (
|
||||
JSON.stringify(prev.parameters) !== JSON.stringify(curr.parameters)
|
||||
) {
|
||||
if (JSON.stringify(prev.parameters) !== JSON.stringify(curr.parameters)) {
|
||||
differences.push({
|
||||
type: 'parameters_changed',
|
||||
from: prev.parameters,
|
||||
|
||||
@@ -187,33 +187,23 @@ function extractApiSurface(sourceFile) {
|
||||
function hasExportModifier(node) {
|
||||
return (
|
||||
node.modifiers &&
|
||||
node.modifiers.some(
|
||||
(mod) => mod.kind === ts.SyntaxKind.ExportKeyword
|
||||
)
|
||||
node.modifiers.some((mod) => mod.kind === ts.SyntaxKind.ExportKeyword)
|
||||
)
|
||||
}
|
||||
|
||||
function hasStaticModifier(node) {
|
||||
return (
|
||||
node.modifiers &&
|
||||
node.modifiers.some(
|
||||
(mod) => mod.kind === ts.SyntaxKind.StaticKeyword
|
||||
)
|
||||
node.modifiers.some((mod) => mod.kind === ts.SyntaxKind.StaticKeyword)
|
||||
)
|
||||
}
|
||||
|
||||
function getVisibility(node) {
|
||||
if (!node.modifiers) return 'public'
|
||||
if (
|
||||
node.modifiers.some(
|
||||
(mod) => mod.kind === ts.SyntaxKind.PrivateKeyword
|
||||
)
|
||||
)
|
||||
if (node.modifiers.some((mod) => mod.kind === ts.SyntaxKind.PrivateKeyword))
|
||||
return 'private'
|
||||
if (
|
||||
node.modifiers.some(
|
||||
(mod) => mod.kind === ts.SyntaxKind.ProtectedKeyword
|
||||
)
|
||||
node.modifiers.some((mod) => mod.kind === ts.SyntaxKind.ProtectedKeyword)
|
||||
)
|
||||
return 'protected'
|
||||
return 'public'
|
||||
|
||||
Reference in New Issue
Block a user