This checklist covers the first hour of a new TypeScript project, not the first year. Work from the top, and when an item does not apply to what you are building, skip it rather than inventing a reason to keep it.
Before you create a file
- Node installed through a version manager rather than a system package.
- The runtime version written into a file that the next person can read.
- One package manager chosen, and used consistently for every command.
- A module format decided once, for the whole project, rather than per file.
- A repository initialised before the first dependency arrives.
Configuration you should read, not copy
A config file borrowed from a blog post is a debt. You repay it during your first deployment, at the worst possible moment.
- Strict enabled, including the checks for null and implicit any.
- A target that matches the runtime you actually support.
- Module resolution that agrees with your chosen module format.
- Source and output directories named explicitly.
- The editor using the project’s compiler version, not a global one.
Project shape on day one
Three directories are usually enough: source, tests, and a scratch folder for experiments you intend to delete. Resist the shared types directory until a second module genuinely needs the same shape.
- One entry point, named for what it starts.
- Types colocated with the code that owns them.
- No shared utilities file until the second use appears.
Habits to adopt before the first commit
- Run the compiler in watch mode while you work, not only before committing.
- Treat each new any as a small failure that deserves a comment.
- Name types after the data, never after the technology.
- Export the narrowest type that callers actually need.
None of these are strict rules. They are defaults that keep a project readable while it is still small, which is when decisions are cheapest to change.
The two-minute smoke test
Write a function, call it with the wrong argument, and confirm the compiler refuses. Then fix the call and confirm the error disappears. If nothing happens at either step, your watcher, your config, or your editor is not wired up, and finding out now costs two minutes instead of a lost afternoon.
Repeat the same check whenever you add a dependency or change the configuration. A clean compile you did not verify is only a guess about your setup.
The moment it passes, close the settings tab and open a source file. A workspace that keeps growing before the first feature exists is a sign that configuration has become the project itself.
Come back to this list when something breaks, not before. A starter setup is finished when it gets out of the way, and every minute spent polishing it beyond that point is a minute not spent on the thing you wanted to build.