From 24dc26cc86bc20adf3639da3951a878896945d59 Mon Sep 17 00:00:00 2001 From: GHOST Date: Fri, 24 Feb 2023 17:10:28 +0000 Subject: [PATCH] docs: update migration guide --- docs/guide/migrate/props.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/guide/migrate/props.md b/docs/guide/migrate/props.md index b421b67f..f2259dac 100644 --- a/docs/guide/migrate/props.md +++ b/docs/guide/migrate/props.md @@ -45,6 +45,28 @@ export default command({ }) ``` +## TS & JS Config + +If you are using TypeScript you should have a `tsconfig.json` in your project, similiarly if you are using JavaScript you should have a `jsconfig.json` in your project. They should both look something like this: + +```json +{ + "compilerOptions": { + "lib": ["ESNext"], + "module": "ESNext", + "target": "ESNext", + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "moduleResolution": "node", + "resolveJsonModule": true, + "strict": true, + "checkJs": true, + "allowJs": true + }, + "include": ["./src/**/*.js", "./src/**/*.ts"] +} +``` + ## Erroring Props previously threw an error when you tried to access soemthing that didn't exist, this is no longer the case.