Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't add forceConsistentCasingInFileNames to tsconfig when ts version >= 5.0 #51564

Expand Up @@ -5,7 +5,6 @@
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
Expand Down
1 change: 0 additions & 1 deletion packages/create-next-app/templates/app/ts/tsconfig.json
Expand Up @@ -5,7 +5,6 @@
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
Expand Down
Expand Up @@ -5,7 +5,6 @@
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
Expand Down
Expand Up @@ -5,7 +5,6 @@
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
Expand Down
Expand Up @@ -28,7 +28,9 @@ function getDesiredCompilerOptions(
allowJs: { suggested: true },
skipLibCheck: { suggested: true },
strict: { suggested: false },
forceConsistentCasingInFileNames: { suggested: true },
...(semver.lt(ts.version, '5.0.0')
? { forceConsistentCasingInFileNames: { suggested: true } }
: undefined),
noEmit: { suggested: true },
...(semver.gte(ts.version, '4.4.2')
? { incremental: { suggested: true } }
Expand Down
10 changes: 0 additions & 10 deletions test/integration/tsconfig-verifier/test/index.test.js
Expand Up @@ -34,7 +34,6 @@ describe('tsconfig.json verifier', () => {
\\"allowJs\\": true,
\\"skipLibCheck\\": true,
\\"strict\\": false,
\\"forceConsistentCasingInFileNames\\": true,
\\"noEmit\\": true,
\\"incremental\\": true,
\\"esModuleInterop\\": true,
Expand Down Expand Up @@ -89,7 +88,6 @@ describe('tsconfig.json verifier', () => {
\\"allowJs\\": true,
\\"skipLibCheck\\": true,
\\"strict\\": false,
\\"forceConsistentCasingInFileNames\\": true,
\\"noEmit\\": true,
\\"incremental\\": true,
\\"esModuleInterop\\": true,
Expand Down Expand Up @@ -163,7 +161,6 @@ describe('tsconfig.json verifier', () => {
\\"allowJs\\": true,
\\"skipLibCheck\\": true,
\\"strict\\": false,
\\"forceConsistentCasingInFileNames\\": true,
\\"noEmit\\": true,
\\"incremental\\": true,
\\"moduleResolution\\": \\"node\\",
Expand Down Expand Up @@ -218,7 +215,6 @@ describe('tsconfig.json verifier', () => {
\\"allowJs\\": true,
\\"skipLibCheck\\": true,
\\"strict\\": false,
\\"forceConsistentCasingInFileNames\\": true,
\\"noEmit\\": true,
\\"incremental\\": true,
\\"moduleResolution\\": \\"node\\",
Expand Down Expand Up @@ -270,7 +266,6 @@ describe('tsconfig.json verifier', () => {
\\"allowJs\\": true,
\\"skipLibCheck\\": true,
\\"strict\\": false,
\\"forceConsistentCasingInFileNames\\": true,
\\"noEmit\\": true,
\\"incremental\\": true,
\\"moduleResolution\\": \\"node\\",
Expand Down Expand Up @@ -326,7 +321,6 @@ describe('tsconfig.json verifier', () => {
\\"allowJs\\": true,
\\"skipLibCheck\\": true,
\\"strict\\": false,
\\"forceConsistentCasingInFileNames\\": true,
\\"noEmit\\": true,
\\"incremental\\": true,
\\"module\\": \\"esnext\\",
Expand Down Expand Up @@ -382,7 +376,6 @@ describe('tsconfig.json verifier', () => {
\\"allowJs\\": true,
\\"skipLibCheck\\": true,
\\"strict\\": false,
\\"forceConsistentCasingInFileNames\\": true,
\\"noEmit\\": true,
\\"incremental\\": true,
\\"module\\": \\"esnext\\",
Expand Down Expand Up @@ -434,7 +427,6 @@ describe('tsconfig.json verifier', () => {
\\"allowJs\\": true,
\\"skipLibCheck\\": true,
\\"strict\\": false,
\\"forceConsistentCasingInFileNames\\": true,
\\"noEmit\\": true,
\\"incremental\\": true,
\\"esModuleInterop\\": true,
Expand Down Expand Up @@ -493,7 +485,6 @@ describe('tsconfig.json verifier', () => {
\\"allowJs\\": true,
\\"skipLibCheck\\": true,
\\"strict\\": false,
\\"forceConsistentCasingInFileNames\\": true,
\\"noEmit\\": true,
\\"incremental\\": true,
\\"resolveJsonModule\\": true,
Expand Down Expand Up @@ -547,7 +538,6 @@ describe('tsconfig.json verifier', () => {
\\"allowJs\\": true,
\\"skipLibCheck\\": true,
\\"strict\\": false,
\\"forceConsistentCasingInFileNames\\": true,
\\"noEmit\\": true,
\\"incremental\\": true,
\\"esModuleInterop\\": true,
Expand Down