Skip to content

Commit

Permalink
Bump typescript eslint parser to support ts 5.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Lucas committed Apr 21, 2024
1 parent 2964160 commit a89be96
Show file tree
Hide file tree
Showing 5 changed files with 244 additions and 71 deletions.
4 changes: 2 additions & 2 deletions examples/next-prisma-starter/package.json
Expand Up @@ -48,8 +48,8 @@
"@playwright/test": "^1.26.1",
"@types/node": "^20.10.0",
"@types/react": "^18.2.33",
"@typescript-eslint/eslint-plugin": "^7.0.1",
"@typescript-eslint/parser": "^7.0.1",
"@typescript-eslint/eslint-plugin": "^7.7.0",
"@typescript-eslint/parser": "^7.7.0",
"autoprefixer": "^10.4.7",
"dotenv": "^16.0.1",
"eslint": "^8.56.0",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -51,8 +51,8 @@
"@testing-library/user-event": "^14.4.3",
"@types/node": "^20.10.0",
"@types/prettier": "^2.7.2",
"@typescript-eslint/eslint-plugin": "^7.0.1",
"@typescript-eslint/parser": "^7.0.1",
"@typescript-eslint/eslint-plugin": "^7.7.0",
"@typescript-eslint/parser": "^7.7.0",
"@vitest/coverage-istanbul": "^1.5.0",
"@vitest/ui": "^1.5.0",
"concurrently": "^8.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/internals/getAbortController.ts
Expand Up @@ -8,11 +8,11 @@ export function getAbortController(
return customAbortControllerImpl;
}

// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
if (typeof window !== 'undefined' && window.AbortController) {
return window.AbortController;
}
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
if (typeof globalThis !== 'undefined' && globalThis.AbortController) {
return globalThis.AbortController;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/links/internals/getTextDecoder.ts
Expand Up @@ -7,11 +7,11 @@ export function getTextDecoder(
return customTextDecoder;
}

// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
if (typeof window !== 'undefined' && window.TextDecoder) {
return new window.TextDecoder();
}
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
if (typeof globalThis !== 'undefined' && globalThis.TextDecoder) {
return new globalThis.TextDecoder();
}
Expand Down

0 comments on commit a89be96

Please sign in to comment.