UNPKG

@tsconfig/create-react-app

Version:

A base TSConfig for working with Create React App.

47 lines (35 loc) 970 B
### A base TSConfig for working with Create React App. Add the package to your `"devDependencies"`: ```sh npm install --save-dev @tsconfig/create-react-app yarn add --dev @tsconfig/create-react-app ``` Add to your `tsconfig.json`: ```json "extends": "@tsconfig/create-react-app/tsconfig.json" ``` --- The `tsconfig.json`: ```jsonc { "$schema": "https://json.schemastore.org/tsconfig", "_version": "2.0.0", "compilerOptions": { "lib": ["dom", "dom.iterable", "esnext"], "module": "esnext", "moduleResolution": "bundler", "target": "es2015", "allowJs": true, "allowSyntheticDefaultImports": true, "esModuleInterop": true, "isolatedModules": true, "jsx": "react-jsx", "noEmit": true, "noFallthroughCasesInSwitch": true, "resolveJsonModule": true, "skipLibCheck": true, "strict": true } } ``` You can find the [code here](https://github.com/tsconfig/bases/blob/master/bases/create-react-app.json).