AGENT SKILL
config-strict-typescript
Update a TypeScript project's tooling config to match the team standards (eslint strict, prettier, pnpm, rolldown). Use when setting up or aligning a repo's config to the preferred TypeScript setup.
- License 许可
- MIT
- 最近更新
- 2026-06-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- config-strict-typescript
- description
- Update a TypeScript project's tooling config to match the team standards (eslint strict, prettier, pnpm, rolldown). Use when setting up or aligning a repo's config to the preferred TypeScript setup.
03 SKILL.md 正文
Config Strict TypeScript
Update the current repository so its tooling config matches the team's standard TypeScript setup.
Target state
- ESLint config at the root using
@elgato/eslint-configwithconfig.strict. @elgato/prettier-configas a dev dependency, referenced inpackage.json.- The project uses pnpm instead of npm.
- The project uses rolldown instead of rollup.
Steps
-
Inspect the repo to see what already exists:
- Root ESLint config (
eslint.config.*,.eslintrc*). package.json(devDependencies,prettier,packageManager, scripts).- Bundler config and lockfiles (
rollup.config.*,package-lock.json,pnpm-lock.yaml).
- Root ESLint config (
-
ESLint — ensure a root config uses
@elgato/eslint-configwith the strict preset:// eslint.config.js import config from "@elgato/eslint-config"; export default config.strict;Add
@elgato/eslint-configas a dev dependency if missing. -
Prettier — add
@elgato/prettier-configas a dev dependency and reference it inpackage.json:{ "prettier": "@elgato/prettier-config" } -
pnpm — migrate off npm:
- Remove
package-lock.jsonif present. - Set
"packageManager": "pnpm@<version>"inpackage.json. - Reinstall with
pnpm installto generatepnpm-lock.yaml.
- Remove
-
rolldown — migrate off rollup:
- Replace the
rollupdependency withrolldown. - Convert
rollup.config.*to arolldown.config.*and update build scripts inpackage.jsonto callrolldown.
- Replace the
-
Verify the changes:
pnpm install pnpm exec eslint . pnpm run build -
Report which files changed (
git status --short) so the user can review and commit them.