You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add knip, publint, actionlint as specialized linters
Add three specialized linters to complement strict TS + Prettier — each
catches a class of problem neither of those sees.
- knip: dead code and unused exports. Found: two unused test helpers
(setGithubEnv, useMockAgent, TestContext interface). Removed. Would
have caught the original @octokit/rest / actions-toolkit / node-fetch
leftovers automatically if it had been in place from the start.
- publint: npm package hygiene. Added 'type: commonjs' (explicit module
type), 'private: true' (this project ships as a GitHub Action, not via
npm), and 'files: [dist/, action.yml]' (if it ever is published, only
the artifacts users need get packaged).
- actionlint: GitHub Actions workflow linter. Found nodejs.yml pinning
actions/setup-node@v3 (deprecated) and testing on Node 18/20 when the
action.yml runtime is node24. Bumped to setup-node@v4 and the matrix
to 20/22/24.
Swapped nock devDep (not used since we moved to undici MockAgent in the
earlier test-harness commit) for an explicit 'undici: ^5.29' devDep —
this resolves the version knip was flagging as 'unlisted' and pins it
to match what @actions/github resolves, which is required for MockAgent
interception to work in-process.
Scripts:
- lint:knip, lint:publint, lint (runs format:check + both).
- CI workflow runs 'npm run lint' and 'npm test' before the build.
- New .github/workflows/actionlint.yml runs actionlint on any change
to .github/workflows/**.
0 commit comments