1.3.3 • Published 5 months ago

@uvarovag/tsconfig-react v1.3.3

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

tsconfig-react

Shared TypeScript configuration for React projects using TypeScript.

Installation

To use this configuration in your project, install the necessary dependencies:

npm install --save-dev @uvarovag/tsconfig-react typescript ts-node

Usage

Step 1: Create a tsconfig.json file

{
    "extends": "@uvarovag/tsconfig-react",
    // Files and folders to be included in the compilation process
    "include": [
        "src" // Only files in the "src" folder
    ],
    // Files and folders to be excluded from the compilation process
    "exclude": [
        "node_modules", // Ignores the "node_modules" folder
        "dist" // Ignores the "dist" folder (compiled code)
    ],
    "compilerOptions": {
        // Sets the base path for all relative paths
        "baseUrl": "./",
        // Configures path aliases for convenient module imports
        "paths": {
            "*": ["./src/*"] // All imports start from "src"
        }
    }
}

Step 2: Compile your project

npx tsc
1.3.3

5 months ago

1.2.0

5 months ago

1.1.0

5 months ago

1.3.2

5 months ago

1.3.1

5 months ago

1.3.0

5 months ago

1.2.1

5 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

7 months ago

1.0.1

8 months ago

1.0.0

8 months ago