Skip to content

Commit

Permalink
Remove Next.js generic type overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky committed May 20, 2023
1 parent 9d9fab0 commit 07277ff
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 59 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
__tests__
templates/next.d.ts
23 changes: 0 additions & 23 deletions __tests__/next.d.ts

This file was deleted.

5 changes: 0 additions & 5 deletions bin/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ for (const {
name: templateFileName,
path: templateFilePath,
} of templateFileNamesAndPaths) {
// Don't copy Next.js types for non-Next.js projects
if (templateFileName === 'next.d.ts' && !('next' in projectDependencies)) {
continue;
}

// Don't copy create-react-app types for non-create-react-app / non-Next.js projects
if (
templateFileName === 'react-app-env.d.ts' &&
Expand Down
5 changes: 0 additions & 5 deletions templates/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,3 @@ dist

# Next.js build folder
.next

# Type overrides for Next.js
# https://github.com/upleveled/eslint-config-upleveled/commit/0789cfa8873176a675ccde4c569a4d7c9c5f04b2
# https://github.com/vercel/next.js/issues/45943#issuecomment-1500874994
next.d.ts
23 changes: 0 additions & 23 deletions templates/next.d.ts

This file was deleted.

3 changes: 1 addition & 2 deletions templates/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"**/*.jsx",
"**/*.cjs",
"**/*.mjs",
".next/types/**/*.ts",
"next.d.ts"
".next/types/**/*.ts"
]
}

0 comments on commit 07277ff

Please sign in to comment.