chore(nextjs): changes application generator tsconfig strict to true (#14855)
This commit is contained in:
parent
0193967b08
commit
4cab83eb99
@ -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');
|
||||||
};
|
};
|
||||||
`
|
`
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user