on master help sign in
set prettier to warn; finish TS config
commitb43ec9cf6b680aef88a47e04e32713dc38f42dbb authortomholford <tomholford@users.noreply.github.com> dateSun 20 Jun 2021, 22:59 (5 years ago) parent2fe8586
4 files changed+29−6
.eslintrc+1−1 jsconfig.json−5 src/react-app-env.d.ts+1 tsconfig.json+27
.eslintrc+1−1
@@ -9,6 +9,6 @@
99 "react-hooks"
1010 ],
1111 "rules": {
12− "prettier/prettier": "error"
12+ "prettier/prettier": "warn"
1313 }
1414}
jsconfig.jsondeleted−5
@@ -1,5 +0,0 @@
1−{
2− "compilerOptions": {
3− "baseUrl": "src"
4− }
5−}
src/react-app-env.d.tsnew file+1
@@ -0,0 +1 @@
1+/// <reference types="react-scripts" />
tsconfig.jsonnew file+27
@@ -0,0 +1,27 @@
1+{
2+ "compilerOptions": {
3+ "target": "es5",
4+ "lib": [
5+ "dom",
6+ "dom.iterable",
7+ "esnext"
8+ ],
9+ "allowJs": true,
10+ "baseUrl": "src",
11+ "skipLibCheck": true,
12+ "esModuleInterop": true,
13+ "allowSyntheticDefaultImports": true,
14+ "strict": true,
15+ "forceConsistentCasingInFileNames": true,
16+ "noFallthroughCasesInSwitch": true,
17+ "module": "esnext",
18+ "moduleResolution": "node",
19+ "resolveJsonModule": true,
20+ "isolatedModules": true,
21+ "noEmit": true,
22+ "jsx": "react-jsx"
23+ },
24+ "include": [
25+ "src"
26+ ]
27+}