gts bundles Google's TypeScript style guide with ESLint, Prettier, and fixed tsconfig defaults. npx gts init wires scripts for lint, fix, compile, and clean in Node projects.
Overview
gts targets teams that want opinionated TypeScript consistency without maintaining separate linter and formatter configs. Running init adds a tsconfig aligned with Google TypeScript Style, devDependencies, and package scripts for linting, automatic fixes, cleaning, and compilation.
Under the hood, ESLint enforces the style guide while Prettier handles formatting. Projects can extend the shared ESLint flat config or use gts only as a baseline and call eslint directly.
Individual files can be linted or fixed from the CLI, and pre-commit integration examples show hooking gts into existing workflows. Badge assets document adoption in project docs.
The tool runs in Node.js environments and follows the Node.js release support policy.
Key features
- Opinionated tsconfig on init
- ESLint and Prettier integration
- lint and fix npm scripts
- npx gts init scaffolding
- Shared eslint flat config export
- Pre-commit hook examples
- Per-file lint and fix commands
- Codecov and CI badge templates
Use cases
- Standardizing TypeScript style in new repos
- Automatic formatting on save or CI
- Onboarding contributors without style debates
- Dropping gts into existing Node packages