chore(nextjs): changes application generator tsconfig strict to true (#14855)

This commit is contained in:
Ahmed Elsakaan 2023-04-26 14:14:48 +01:00 committed by GitHub
parent 0193967b08
commit 4cab83eb99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -106,7 +106,8 @@ describe('Next.js Applications', () => {
` `
import { jsLibAsync } from '@${proj}/${jsLib}'; import { jsLibAsync } from '@${proj}/${jsLib}';
export default async function handler(_, res) { // eslint-disable-next-line @typescript-eslint/no-explicit-any
export default async function handler(_: any, res: any) {
const value = await jsLibAsync(); const value = await jsLibAsync();
res.send(value); res.send(value);
} }
@ -261,7 +262,7 @@ describe('Next.js Applications', () => {
updateFile( updateFile(
`apps/${appName}/pages/api/hello.js`, `apps/${appName}/pages/api/hello.js`,
` `
export default (_req, res) => { export default (_req: any, res: any) => {
res.status(200).send('Welcome'); res.status(200).send('Welcome');
}; };
` `

View File

@ -6,7 +6,7 @@
"allowJs": true, "allowJs": true,
"esModuleInterop": true, "esModuleInterop": true,
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"strict": false, "strict": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"noEmit": true, "noEmit": true,
"resolveJsonModule": true, "resolveJsonModule": true,