[automated] Apply ESLint and Prettier fixes

This commit is contained in:
GitHub Action
2025-10-23 03:06:37 +00:00
parent ff60bdf1bc
commit 5cf6ac07ac
2 changed files with 5 additions and 17 deletions

View File

@@ -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,

View File

@@ -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'