import { lintCommands } from "complete-node"; await lintCommands(import.meta.dirname, [ // Use TypeScript to type-check the code. "tsc --noEmit", "tsc --noEmit --project ./scripts/tsconfig.json", // Use ESLint to lint the TypeScript code. "eslint", // Use Prettier to check formatting. // - "--log-level=warn" makes it only output errors. "prettier --log-level=warn --check .", // Use Knip to check for unused files, exports, and dependencies. // - "--treat-config-hints-as-errors" - Exit with non-zero code (1) if there are any configuration // hints. "knip --treat-config-hints-as-errors", // Use CSpell to spell check every file. // - "--no-progress" and "--no-summary" make it only output errors. "cspell --no-progress --no-summary", // Check for unused words in the CSpell configuration file. "cspell-check-unused-words", // Check for template updates. "complete-cli check", ]);