I am working on a migration of a react project and didn't find a way of disabling typescript globally. It works well with @ts-nocheck on top of each file that I need, but I would like to know if there is something easier than that.
Thanks.
Maybe you can edit your tsconfig.json
file with something similar to:
{
"compilerOptions": {
"target": "es5",
"jsx": "react",
"allowSyntheticDefaultImports": true,
"alwaysStrict": false,
"strict": false,
"noImplicitAny": false,
"noEmitOnError": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"noFallthroughCasesInSwitch": false,
"noImplicitReturns": false,
"noImplicitThis": false
},
"include": [
"src/*"
],
}
This doesn't disable it, but it's like it doesn't exists.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.