TypeScript Configuration by silverwind

17.0.0 · active · verified Sun Apr 19

The `typescript-config-silverwind` package provides a highly opinionated and actively maintained base TypeScript configuration designed for modern JavaScript and TypeScript projects. Currently at version 17.0.0, this configuration package is typically updated to align with major TypeScript releases and evolving best practices, ensuring projects leverage the latest compiler features and strictness improvements. It serves as a foundational configuration, intended to be extended by project-specific `tsconfig.json` files, simplifying TypeScript setup and promoting consistency across repositories. The package emphasizes strong type checking and modern ECMAScript module patterns. Its key differentiator lies in offering a robust, pre-configured set of `compilerOptions` and `include` directives, aiming to reduce boilerplate and common configuration errors for developers by enforcing a consistent and high-quality TypeScript standard. It's often used as a dependency in other `silverwind` configuration packages, demonstrating its role as a core component in a larger ecosystem of opinionated developer tooling.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates how to extend the `typescript-config-silverwind` preset in your project's `tsconfig.json`, including how to override specific `compilerOptions` and correctly specify `include` and `exclude` paths.

{
  "extends": "typescript-config-silverwind",
  "compilerOptions": {
    // Override specific compiler options if needed
    "outDir": "./dist",
    "jsx": "react-jsx"
  },
  "include": [
    "src/**/*",
    "types/**/*",
    "test/**/*",
    "**/.*",
    "**/.*/**/*",
    "**/.*/**/.*"
  ],
  "exclude": [
    "node_modules",
    "dist"
  ]
}

view raw JSON →