@tsconfig/create-react-app

2.0.4 • Public • Published

A base TSConfig for working with Create React App.

Add the package to your "devDependencies":

npm install --save-dev @tsconfig/create-react-app
yarn add --dev @tsconfig/create-react-app

Add to your tsconfig.json:

"extends": "@tsconfig/create-react-app/tsconfig.json"

The tsconfig.json:

{
  "$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.

Package Sidebar

Install

npm i @tsconfig/create-react-app

Weekly Downloads

18,867

Version

2.0.4

License

MIT

Unpacked Size

2.9 kB

Total Files

4

Last publish

Collaborators

  • orta
  • typescript-deploys