Standard TypeScript configurations for IWF projects, optimized for React development with Vite.
This package provides the following TypeScript configurations:
| Configuration | Description |
|---|---|
react-strict |
Strict TypeScript settings for React + Vite projects |
- Node.js 18 or higher
- pnpm, npm, or yarn
pnpm add -D @iwf-web/tsconfigOr with npm:
npm install -D @iwf-web/tsconfigExtend the configuration in your tsconfig.json:
{
"extends": "@iwf-web/tsconfig/react-strict/tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["src"]
}This configuration extends three base configurations for comprehensive TypeScript support:
@tsconfig/recommended- Recommended TypeScript settings@tsconfig/vite-react- Optimized settings for Vite + React@tsconfig/strictest- Strictest type checking rules
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 |
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.
We use SemVer for versioning. For available versions, see the tags on this repository.
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.
This project is licensed under the MIT License - see the LICENSE.txt file for details.
A list of used libraries and code with their licenses can be found in the ACKNOWLEDGMENTS.md file.