UNPKG

standardlint

Version:
29 lines (26 loc) 662 B
import { logDefaultPathMessage } from "./chunk-322CAOWI.mjs"; import { exists } from "./chunk-DRBJPZVI.mjs"; import { calculatePass } from "./chunk-I4KWICZI.mjs"; // src/checks/checkForPresenceApiSchema.ts function checkForPresenceApiSchema(severity, basePath, customPath, filetreePaths) { const path = customPath || "api/schema.json"; const name = "API schema"; const message = "Check for API schema"; if (!customPath) logDefaultPathMessage(name, path); const result = exists(basePath, path, filetreePaths); return { name, status: calculatePass(result, severity), message, path }; } export { checkForPresenceApiSchema };