create-typescript-app provides several dozen pieces of tooling, ranging from code building and formatting to various forms of GitHub repository management.
Each can be individually turned off or on.
This table summarizes each block and which base levels they're included in:
| Block | Flags | Minimal | Common | Everything |
|---|---|---|---|---|
| AgentScan | --add-agentscan, --exclude-agentscan |
💯 | ||
| AllContributors | --add-allcontributors, --exclude-allcontributors |
✅ | 💯 | |
| Anti-Slop | --add-anti-slop, --exclude-anti-slop |
💯 | ||
| Are The Types Wrong | --add-are-the-types-wrong, --exclude-are-the-types-wrong |
|||
| Bin | --add-bin, --exclude-bin |
✔️ | ✅ | 💯 |
| Contributing Docs | --add-contributing-docs, --exclude-contributing-docs |
✔️ | ✅ | 💯 |
| Contributor Covenant | --add-contributor-covenant, --exclude-contributor-covenant |
✔️ | ✅ | 💯 |
| CSpell | --add-cspell, --exclude-cspell |
💯 | ||
| Codecov | --add-codecov, --exclude-codecov |
✅ | 💯 | |
| Development Docs | --add-development-docs, --exclude-development-docs |
✔️ | ✅ | 💯 |
| ESLint | --add-eslint, --exclude-eslint |
✔️ | ✅ | 💯 |
| ESLint Comments Plugin | --add-eslint-comments-plugin, --exclude-eslint-comments-plugin |
💯 | ||
| ESLint JSDoc Plugin | --add-eslint-jsdoc-plugin, --exclude-eslint-jsdoc-plugin |
💯 | ||
| ESLint JSONC Plugin | --add-eslint-jsonc-plugin, --exclude-eslint-jsonc-plugin |
💯 | ||
| ESLint Markdown Plugin | --add-eslint-markdown-plugin, --exclude-eslint-markdown-plugin |
💯 | ||
| ESLint Markdown Links Plugin | --add-eslint-markdown-links-plugin, --exclude-eslint-markdown-links-plugin |
💯 | ||
| ESLint More Styling | --add-eslint-more-styling, --exclude-eslint-more-styling |
💯 | ||
| ESLint Node Plugin | --add-eslint-node-plugin, --exclude-eslint-node-plugin |
💯 | ||
| ESLint package.json Plugin | --add-eslint-package-json-plugin, --exclude-eslint-package-json-plugin |
💯 | ||
| ESLint Perfectionist Plugin | --add-eslint-perfectionist-plugin, --exclude-eslint-perfectionist-plugin |
💯 | ||
| ESLint Plugin | --add-eslint-plugin, --exclude-eslint-plugin |
|||
| ESLint Regexp Plugin | --add-eslint-regexp-plugin, --exclude-eslint-regexp-plugin |
💯 | ||
| ESLint YML Plugin | --add-eslint-yml-plugin, --exclude-eslint-yml-plugin |
💯 | ||
| Exports | --add-exports, --exclude-exports |
✔️ | ✅ | 💯 |
| Funding | --add-funding, --exclude-funding |
✅ | 💯 | |
| GitHub Actions CI | --add-github-actions-ci, --exclude-github-actions-ci |
✔️ | ✅ | 💯 |
| GitHub Issue Templates | --add-github-issue-templates, --exclude-github-issue-templates |
✔️ | ✅ | 💯 |
| GitHub PR Template | --add-github-pr-template, --exclude-github-pr-template |
✔️ | ✅ | 💯 |
| Gitignore | --add-gitignore, --exclude-gitignore |
✔️ | ✅ | 💯 |
| Knip | --add-knip, --exclude-knip |
💯 | ||
| MIT License | --add-mit-license, --exclude-mit-license |
✔️ | ✅ | 💯 |
| ncc | --add-ncc, --exclude-ncc |
|||
| NextJS | --add-nextjs, --exclude-nextjs |
|||
| nvmrc | --add-nvmrc, --exclude-nvmrc |
💯 | ||
| OctoGuide | --add-octoguide, --exclude-octoguide |
✅ | 💯 | |
| OctoGuide Strict | --add-octoguide-strict, --exclude-octoguide-strict |
💯 | ||
| Package JSON | --add-package-json, --exclude-package-json |
✔️ | ✅ | 💯 |
| pnpm Dedupe | --add-pnpm-dedupe, --exclude-pnpm-dedupe |
💯 | ||
| Prettier | --add-prettier, --exclude-prettier |
✔️ | ✅ | 💯 |
| Prettier Plugin Curly | --add-prettier-plugin-curly, --exclude-prettier-plugin-curly |
💯 | ||
| Prettier Plugin Package JSON | --add-prettier-plugin-package-json, --exclude-prettier-plugin-package-json |
💯 | ||
| Prettier Plugin Padding Lines | --add-prettier-plugin-padding-lines, --exclude-prettier-plugin-padding-lines |
💯 | ||
| Prettier Plugin Sentences Per Line | --add-prettier-plugin-sentences-per-line, --exclude-prettier-plugin-sentences-per-line |
💯 | ||
| Prettier Plugin Sh | --add-prettier-plugin-sh, --exclude-prettier-plugin-sh |
💯 | ||
| README.md | --add-readme-md, --exclude-readme-md |
✔️ | ✅ | 💯 |
| release-it | --add-release-it, --exclude-release-it |
✅ | 💯 | |
| Renovate | --add-renovate, --exclude-renovate |
💯 | ||
| Security Docs | --add-security-docs, --exclude-security-docs |
✔️ | ✅ | 💯 |
| Side Effects | --add-side-effects, --exclude-side-effects |
✔️ | ✅ | 💯 |
| Slop Issue Unlink | --add-slop-issue-unlink, --exclude-slop-issue-unlink |
💯 | ||
| Templated With | --add-templated-with, --exclude-templated-with |
✔️ | ✅ | 💯 |
| TSDown | --add-tsdown, --exclude-tsdown |
✔️ | ✅ | 💯 |
| TypeScript | --add-typescript, --exclude-typescript |
✔️ | ✅ | 💯 |
| Vite | --add-vite, --exclude-vite |
|||
| Vitest | --add-vitest, --exclude-vitest |
✅ | 💯 | |
| VS Code | --add-vs-code, --exclude-vs-code |
💯 | ||
| Web-ext | --add-web-ext, --exclude-web-ext |
|||
| zizmor | --add-zizmor, --exclude-zizmor |
💯 |
For example, this uses ncc instead of the default tsdown builder:
npx create-typescript-app --add-ncc --exclude-tsdownThe Vite block is another builder alternative, so pass --add-vite together with --exclude-tsdown: both blocks write scripts.build and exports in package.json.
Or, this creates a Next.js site that isn't built or published as a package:
npx create-typescript-app --add-nextjs --exclude-release-it --exclude-tsdownSee also CLI for customizing templated repositories when running npx create-typescript-app.
These tooling pieces are the ones that most repositories should generally always have enabled. Other pieces of tooling are likely to not work as well (or at all) if these are removed.
The "minimal" base is best suited for projects that are very small and not likely to change very frequently. However, they'll be missing out on many of the great tooling pieces enabled in more comprehensive bases. We strongly recommend using at least the "common" base level instead for most repositories.
tsdown: Builds output definitions and JavaScript files.
Each *.ts source file within src/ is built into .d.ts and .js output files in dist/.
Building once:
pnpm buildBuilding in watch mode:
pnpm build --watchPrettier: Formats code for developers and enforces a consistent formatting style. It's run on file save per VS Code settings and as a Git commit hook via husky and pretty-quick. Additional formatting can be provided by the following plugins:
- prettier-plugin-curly
- prettier-plugin-padding-lines
- prettier-plugin-sentences-per-line
- prettier-plugin-sh
- prettier-plugin-packagejson
Auto-formatting all files:
pnpm format --writeESLint: Static analysis for JavaScript code that detects likely logical issues and helps enforce consistent code style. Uses typescript-eslint to understand TypeScript syntax and include TypeScript-specific rules.
Linting all files:
pnpm lintLinting all files, auto-fixing fixable rule reports:
pnpm lint --fixpnpm: Disk-efficient package manager alternative to npm. It caches packages in a computer-wide registry and symlinks installed packages within that registry.
Installing packages:
pnpm installIn code, assorted repository documentation files for GitHub are created:
GitHub Actions workflows are added for each of the enabled tooling pieces to run them in CI.
On the GitHub repository, metadata will be populated:
- Issue labels for issue areas, statuses, and types.
- Repository settings such as branch rulesets and squash merging PRs
TypeScript: A typed superset of JavaScript that ensures runtime behavior matches the code's intent.
Configured with strict compiler options, including noImplicitAny and strict.
Type checking once:
pnpm tscType checking in watch mode:
pnpm tsc --watchThese added tooling pieces are those that aren't quite essential for a repository, but are still very commonly useful.
This is recommended for most users of create-typescript-app to start with.
All Contributors: Tracks various kinds of contributions and displays them in a nicely formatted table in the README.md. Contributions will be auto-detected when possible using all-contributors-auto-action.
Knip: Detects unused files, dependencies, and code exports.
Running Knip:
pnpm lint:knipOctoGuide: checks that contributor activity on your GitHub repository aligns with common expectations of smoothly-running projects. It will automatically post friendly comments when contributors take actions you don’t want them to.
release-it: Generates changelogs, bumps the package version, and publishes to GitHub and npm based on conventional commits.
Renovate: Keeps dependencies up-to-date with PRs, configured to wait a week after each update for safety.
Vitest: Fast unit tests, configured with coverage tracking.
Additionally:
@vitest/eslint-pluginwill be added to the ESLint config to lint for Vitest-specific issuesconsole-fail-testwill also be added to ensure tests don't accidentally log to the console.
Running tests in watch mode:
pnpm testRunning tests in watch mode and auto-updating Vitest snapshots:
pnpm test -uRunning tests once with coverage tracking:
pnpm test run --coverageThis level is for developers who are eager to get the maximum tooling benefits in a repository. Using the "everything" level will gain you comprehensive, strict coverage of all sorts of repository issues, including auto-sorting of properties and strict ESLint configs.
AgentScan: flags new issues and pull requests from accounts whose public activity looks automated, and closes ones from accounts it classifies as automation. Maintainers and collaborators are skipped.
anti-slop: runs a suite of quality checks on new pull requests, such as following the PR template, account age, and contribution history.
PRs that fail too many checks are labeled suspected ai slop and closed with an explanatory comment.
The PR template also gets a hidden honeypot instruction asking AI agents to include a term (by default, SASSAFRAS) that the action blocks.
Including it fails one of anti-slop's checks, which counts toward its threshold of failed checks (4 by default) like any other.
You can change the term with a blockAntiSlop({ honeypot: "..." }) extension, or turn the honeypot off with blockAntiSlop({ honeypot: false }).
Owners, members, collaborators, common bots such as Renovate and Dependabot, and draft PRs are exempt.
@eslint-community/eslint-plugin-eslint-comments: Enforces proper usage of ESLint configuration comments.
zizmor: Static analysis for GitHub Actions workflows and composite actions that detects common security issues.
It runs in CI using zizmor-action, configured by .github/zizmor.yaml.
eslint-plugin-jsdoc: Enforces good practices around JSDoc comments.
eslint-plugin-jsonc: Adds linting for .json and .jsonc files.
eslint-plugin-package-json: Linting for package.json files.
Uses pnpm dedupe to deduplicate package dependencies.
A Dedupe Check CI job fails if pnpm-lock.yaml has unnecessarily duplicated packages:
pnpm dedupe --checkThis is grouped with "Lint" tooling pieces, but will likely eventually be renamed (#896).
eslint-plugin-perfectionist: Lints for sorting properties, imports, etc.
This plugin is quite particular -perfectionist, even- but all its rules include auto-fixers that can correct complaints for you.
eslint-plugin-regexp: Detects issues with JavaScript regular expressions, such as potential exponential complexity.
CSpell: Spell checking for code.
Helps detect typos based on a configurable user dictionary (cspell.json).
pnpm lint:spellingThis is a separate linter from ESLint, but will likely eventually be switched to an ESLint plugin (#897).
Enables typescript-eslint's strict configs for increased scrutiny around code logic.
Enables typescript-eslint's stylistic configs for increased scrutiny around consistent code style.
eslint-plugin-yml: Adds linting for yaml and .yaml files, such as sorting keys.
OctoGuide's Strict Config: additionally enforces enforcing semantic pull request conventions.
slop-issue-unlink-action: removes links between issues and closed, unmerged PRs labeled by AgentScan or Anti-Slop, so those issues don't keep showing the slop PRs as linked.
It runs as a step after AgentScan and Anti-Slop in their own workflows, since closures made with GITHUB_TOKEN don't trigger other workflows, and in its own workflow for PRs that people close or label.