Skip to content

iwf-web/tsconfig

IWF TypeScript Config

Standard TypeScript configurations for IWF projects, optimized for React development with Vite.

License Version Downloads

Configurations

This package provides the following TypeScript configurations:

Configuration Description
react-strict Strict TypeScript settings for React + Vite projects

Getting Started

Prerequisites

  • Node.js 18 or higher
  • pnpm, npm, or yarn

Installation

pnpm add -D @iwf-web/tsconfig

Or with npm:

npm install -D @iwf-web/tsconfig

Usage

Extend the configuration in your tsconfig.json:

{
  "extends": "@iwf-web/tsconfig/react-strict/tsconfig.json",
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/*": ["./src/*"]
    }
  },
  "include": ["src"]
}

Configuration Details

react-strict

This configuration extends three base configurations for comprehensive TypeScript support:

Customizations

The following settings are relaxed from the strictest defaults for practical development:

Setting Value Reason
erasableSyntaxOnly false Allows enums, namespaces, and classes
noPropertyAccessFromIndexSignature false Allows dot notation for index signatures
noImplicitAny false Permits implicit any types where inference fails
exactOptionalPropertyTypes false Allows undefined assignment to optional properties

Contributing

Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.

This project uses Conventional Commits for automated releases and changelog generation.

Versioning

We use SemVer for versioning. For available versions, see the tags on this repository.

Authors

All authors can be found in the AUTHORS.md file.

Contributors can be found in the CONTRIBUTORS.md file.

See also the full list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.txt file for details.

Acknowledgments

A list of used libraries and code with their licenses can be found in the ACKNOWLEDGMENTS.md file.

About

Standard tsconfigs for IWF

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •