diff --git a/README.md b/README.md index 0396f13f..f58d34b0 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ yarn create react-app your-project-name --template typescript-redux ## Motivation -You know the pain. You start a new project from scratch and need to configure it again and again. It needs routing, ok you setup Router, then you need Redux - ok, oh 😩Redux boilerplate is taking so much time to type. Wait... what if you could have all the tools you want just from the beginning? I want to focus on building amazing projects and not spending hours configuring. That's why I've created this template. It's here for you to use. +You know the pain. You start a new project from scratch and need to configure it again and again. It needs routing, ok you setup Router, then you need Redux - ok, oh 😩 Redux boilerplate is taking so much time to type. Wait... what if you could have all the tools you want just from the beginning? I want to focus on building amazing projects and not spending hours configuring. That's why I've created this template. It's here for you to use. ## Available Scripts @@ -83,6 +83,14 @@ The template extends CRA ESLint rules with a custom set, tailored for the reason Eslint rules are commented for your convenience feel free to tweak or remove them inside `.eslintrc`. No judgment. +## Testing template locally + +To test the output of your template locally run + +```bash +npx create-react-app my-app --template file:/\path\to\file +``` + ## How to create custom Create React App (CRA) templates I created a step by step guide on how to create your own templates. diff --git a/template/tsconfig.json b/template/tsconfig.json index f2850b71..6308cb89 100644 --- a/template/tsconfig.json +++ b/template/tsconfig.json @@ -1,11 +1,7 @@ { "compilerOptions": { "target": "es5", - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], + "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, "esModuleInterop": true, @@ -17,9 +13,8 @@ "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, - "jsx": "react" + "jsx": "react", + "noFallthroughCasesInSwitch": true }, - "include": [ - "src" - ] + "include": ["src"] } diff --git a/tsconfig.json b/tsconfig.json index f2850b71..6308cb89 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,11 +1,7 @@ { "compilerOptions": { "target": "es5", - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], + "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, "esModuleInterop": true, @@ -17,9 +13,8 @@ "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, - "jsx": "react" + "jsx": "react", + "noFallthroughCasesInSwitch": true }, - "include": [ - "src" - ] + "include": ["src"] }