# google/gts

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/google-gts).**

5,284 stars · 208 forks · TypeScript · Apache-2.0

## Links

- GitHub: https://github.com/google/gts
- Homepage: https://github.com/google/gts
- awesome-repositories: https://awesome-repositories.com/repository/google-gts.md

## Topics

`formatter` `google` `linter` `typescript`

## Description

gts provides standardized utilities for project bootstrapping and the application of consistent linting and formatting style guides. It functions as a TypeScript project bootstrapper that initializes new projects with standardized dependencies, build scripts, and compiler settings.

The project implements a comprehensive TypeScript style guide consisting of a predefined collection of rules for static analysis and a code formatter that automatically adjusts source code spacing and syntax. These tools identify and fix code style violations to ensure uniformity across codebases.

Additional capabilities include the enforcement of strict compiler constraints and type-checking behaviors. The system also integrates with version control through pre-commit validation automation to prevent non-compliant code from entering the repository history.

## Tags

### Development Tools & Productivity

- [Project Bootstrapping Scripts](https://awesome-repositories.com/f/development-tools-productivity/project-bootstrapping-scripts.md) — Provides scripts that initialize the directory structure and baseline configuration for new TypeScript projects.
- [Automatic Code Formatters](https://awesome-repositories.com/f/development-tools-productivity/automatic-code-formatters.md) — Implements tools that automatically rewrite source code to adhere to a consistent visual style and syntax standard.
- [Static Analysis Rules](https://awesome-repositories.com/f/development-tools-productivity/code-quality-analysis/static-analysis-engines/static-analysis-tools/static-analysis-rules.md) — Implements configurable sets of constraints to enforce architectural standards and coding best practices through static analysis.
- [Coding Style Tools](https://awesome-repositories.com/f/development-tools-productivity/developer-utilities-libraries/developer-tools/code-quality-verification/coding-style-tools.md) — Ships utilities that automatically format, lint, and enforce consistency in source code style. ([source](https://github.com/google/gts/blob/main/README.md))
- [Project Bootstrappers](https://awesome-repositories.com/f/development-tools-productivity/project-bootstrappers.md) — Ships tools and templates used to generate the initial minimal file structure for new TypeScript projects.
- [TypeScript Configurations](https://awesome-repositories.com/f/development-tools-productivity/project-scaffolding-config-code-generation/project-scaffolding-configuration/build-configuration/typescript-configurations.md) — Provides standardized configuration files and settings for managing TypeScript compilation and linting.
- [Automated Code Fixes](https://awesome-repositories.com/f/development-tools-productivity/ast-transformation-tools/ast-structure-modification/automated-code-fixes.md) — Provides automated modification of AST nodes to transform non-compliant code into standardized patterns.
- [Automated Lint Fixes](https://awesome-repositories.com/f/development-tools-productivity/automated-lint-fixes.md) — Provides tools that automatically correct syntax and style violations in source code. ([source](https://github.com/google/gts))
- [Git Hooks](https://awesome-repositories.com/f/development-tools-productivity/git-hooks.md) — Implements automated scripts that execute formatting and linting tasks before commits. ([source](https://github.com/google/gts/blob/main/README.md))
- [Pre-commit Hooks](https://awesome-repositories.com/f/development-tools-productivity/pre-commit-hooks.md) — Integrates automated quality checks that execute specifically before version control commits.
- [Pre-Commit Quality Hooks](https://awesome-repositories.com/f/development-tools-productivity/pre-commit-hooks/pre-commit-quality-hooks.md) — Runs linting and tests automatically on every commit to prevent non-compliant code from entering history. ([source](https://github.com/google/gts/blob/main/CHANGELOG.md))

### Software Engineering & Architecture

- [TypeScript Standards](https://awesome-repositories.com/f/software-engineering-architecture/development-methodologies/engineering-best-practices/code-craftsmanship-standards/coding-standards/typescript-standards.md) — Provides a comprehensive set of standardized linting and formatting rules to ensure consistency across TypeScript codebases. ([source](https://github.com/google/gts/blob/main/package.json))
- [Compiler Configuration Standards](https://awesome-repositories.com/f/software-engineering-architecture/compiler-configuration-standards.md) — Aligns TypeScript compiler options with organizational style guides to ensure consistent type-checking behavior.
- [Linting Rule Configurations](https://awesome-repositories.com/f/software-engineering-architecture/project-management-governance/project-governance/standards-rule-enforcement/configuration-driven-rules/linting-rule-configurations.md) — Provides settings that define which syntax checks a linter applies based on standardized configuration files.
- [Source Code Formatting](https://awesome-repositories.com/f/software-engineering-architecture/source-code-formatting.md) — Provides standardized rules for the visual layout of source code, including indentation and spacing. ([source](https://github.com/google/gts/blob/main/.prettierrc.json))

### Programming Languages & Runtimes

- [Linter Configurations](https://awesome-repositories.com/f/programming-languages-runtimes/linter-configurations.md) — Provides predefined rule sets used by static analysis tools to enforce coding styles and syntax standards.

### Testing & Quality Assurance

- [JavaScript and TypeScript Formatting](https://awesome-repositories.com/f/testing-quality-assurance/code-quality-review/code-quality-tools/formatting-and-linting-pipelines/javascript-and-typescript-toolchains/javascript-and-typescript-formatting.md) — Provides dedicated styling and layout enforcement for TypeScript source code.
- [TypeScript Feature Rule Enforcement](https://awesome-repositories.com/f/testing-quality-assurance/code-quality-review/code-quality-tools/formatting-and-linting-pipelines/javascript-and-typescript-toolchains/typescript-linting-plugins/typescript-static-analysis/typescript-feature-rule-enforcement.md) — Enforces correctness and consistency of TypeScript-specific constructs to ensure high code quality. ([source](https://github.com/google/gts/blob/main/tsconfig-google.json))
- [Pre-Commit Quality Checks](https://awesome-repositories.com/f/testing-quality-assurance/testing-best-practices-methodologies/quality-assurance-practices/pre-commit-quality-checks.md) — Enforces automated linting and quality checks via Git hooks on every commit.

### DevOps & Infrastructure

- [Shared Formatting Configurations](https://awesome-repositories.com/f/devops-infrastructure/centralized-configuration-management/shared-formatting-configurations.md) — Distributes standardized style rules across projects via remote artifacts to ensure a single source of truth.
