Adds useUnknownInCatchVariables and disallows .js in tsconfig (#1033)
This commit is contained in:
parent
d780e39241
commit
1649d41dd5
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,6 @@
|
||||||
"@server/*": ["server/*"],
|
"@server/*": ["server/*"],
|
||||||
"@ee/*": ["ee/*"]
|
"@ee/*": ["ee/*"]
|
||||||
},
|
},
|
||||||
"allowJs": true,
|
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"strictNullChecks": true,
|
"strictNullChecks": true,
|
||||||
|
@ -20,9 +19,10 @@
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
|
"useUnknownInCatchVariables": true,
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
"types": ["@types/jest", "jest-playwright-preset", "expect-playwright"]
|
"types": ["@types/jest", "jest-playwright-preset", "expect-playwright"]
|
||||||
},
|
},
|
||||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "lib/*.js"],
|
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue