diff --git a/localenv/mock-account-servicing-entity/tsconfig.json b/localenv/mock-account-servicing-entity/tsconfig.json index b6926797b1..5a433ea103 100644 --- a/localenv/mock-account-servicing-entity/tsconfig.json +++ b/localenv/mock-account-servicing-entity/tsconfig.json @@ -11,7 +11,6 @@ "target": "ES2019", "strict": true, "allowJs": true, - "forceConsistentCasingInFileNames": true, "baseUrl": ".", "paths": { "~/*": ["./app/*"] diff --git a/package.json b/package.json index 61f4314d76..e66651af3a 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "prettier": "^3.2.2", "ts-jest": "^29.1.1", "tunnelmole": "^2.2.13", - "typescript": "^4.9.5", + "typescript": "^5.3.3", "uuid": "^9.0.1" }, "dependenciesMeta": { diff --git a/packages/auth/src/graphql/scalars/UInt8.ts b/packages/auth/src/graphql/scalars/UInt8.ts index 82ec72e16f..32c851f59f 100644 --- a/packages/auth/src/graphql/scalars/UInt8.ts +++ b/packages/auth/src/graphql/scalars/UInt8.ts @@ -10,7 +10,7 @@ function coerceUInt8Value(value: number | string | unknown): number { throw new TypeError('Provided value is not number or string.') } const nValue = Number(value) - if (Number.isInteger(nValue) && value >= 0 && value <= 255) { + if (Number.isInteger(nValue) && nValue >= 0 && nValue <= 255) { return nValue } throw new GraphQLError('Provided value is not a UInt8.', { diff --git a/packages/auth/src/tests/context.ts b/packages/auth/src/tests/context.ts index c22616b53e..e46b485f2f 100644 --- a/packages/auth/src/tests/context.ts +++ b/packages/auth/src/tests/context.ts @@ -26,9 +26,7 @@ export function createContext( maxAge: 60 * 1000, signed: true }, - // Only accepts Middleware for some reason, koa is Middleware - // eslint-disable-next-line @typescript-eslint/no-explicit-any - koa as any + koa ) ) const ctx = koa.createContext(req, res) diff --git a/packages/backend/src/graphql/scalars/UInt8.ts b/packages/backend/src/graphql/scalars/UInt8.ts index 82ec72e16f..32c851f59f 100644 --- a/packages/backend/src/graphql/scalars/UInt8.ts +++ b/packages/backend/src/graphql/scalars/UInt8.ts @@ -10,7 +10,7 @@ function coerceUInt8Value(value: number | string | unknown): number { throw new TypeError('Provided value is not number or string.') } const nValue = Number(value) - if (Number.isInteger(nValue) && value >= 0 && value <= 255) { + if (Number.isInteger(nValue) && nValue >= 0 && nValue <= 255) { return nValue } throw new GraphQLError('Provided value is not a UInt8.', { diff --git a/packages/frontend/tsconfig.json b/packages/frontend/tsconfig.json index 20f8a386a6..c7e37394c4 100644 --- a/packages/frontend/tsconfig.json +++ b/packages/frontend/tsconfig.json @@ -10,7 +10,6 @@ "target": "ES2019", "strict": true, "allowJs": true, - "forceConsistentCasingInFileNames": true, "baseUrl": ".", "paths": { "~/*": ["./app/*"] diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5c132c80a5..cf364f268e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -19,10 +19,10 @@ importers: version: 29.5.11 '@typescript-eslint/eslint-plugin': specifier: ^6.18.1 - version: 6.18.1(@typescript-eslint/parser@6.18.1)(eslint@8.56.0)(typescript@4.9.5) + version: 6.18.1(@typescript-eslint/parser@6.18.1)(eslint@8.56.0)(typescript@5.3.3) '@typescript-eslint/parser': specifier: ^6.18.1 - version: 6.18.1(eslint@8.56.0)(typescript@4.9.5) + version: 6.18.1(eslint@8.56.0)(typescript@5.3.3) dotenv: specifier: ^16.3.1 version: 16.3.1 @@ -43,13 +43,13 @@ importers: version: 3.2.2 ts-jest: specifier: ^29.1.1 - version: 29.1.1(@babel/core@7.23.2)(@jest/types@29.6.3)(jest@29.7.0)(typescript@4.9.5) + version: 29.1.1(@babel/core@7.23.2)(@jest/types@29.6.3)(jest@29.7.0)(typescript@5.3.3) tunnelmole: specifier: ^2.2.13 version: 2.2.13 typescript: - specifier: ^4.9.5 - version: 4.9.5 + specifier: ^5.3.3 + version: 5.3.3 uuid: specifier: ^9.0.1 version: 9.0.1 @@ -463,7 +463,7 @@ importers: version: 0.2.1 astro: specifier: 3.6.4 - version: 3.6.4(typescript@4.9.5) + version: 3.6.4(typescript@5.3.3) astro-graphql-plugin: specifier: ^0.1.0 version: 0.1.0(graphql@16.8.1) @@ -910,7 +910,7 @@ packages: astro: ^3.1.0 dependencies: '@astrojs/prism': 3.0.0 - astro: 3.6.4(typescript@4.9.5) + astro: 3.6.4(typescript@5.3.3) github-slugger: 2.0.0 import-meta-resolve: 3.0.0 mdast-util-definitions: 6.0.0 @@ -934,7 +934,7 @@ packages: astro: ^3.0.0 dependencies: '@astrojs/prism': 3.0.0 - astro: 3.6.4(typescript@4.9.5) + astro: 3.6.4(typescript@5.3.3) github-slugger: 2.0.0 import-meta-resolve: 3.0.0 mdast-util-definitions: 6.0.0 @@ -961,7 +961,7 @@ packages: '@astrojs/markdown-remark': 3.2.0(astro@3.6.4) '@mdx-js/mdx': 2.3.0 acorn: 8.10.0 - astro: 3.6.4(typescript@4.9.5) + astro: 3.6.4(typescript@5.3.3) es-module-lexer: 1.3.0 estree-util-visit: 1.2.1 github-slugger: 2.0.0 @@ -1001,7 +1001,7 @@ packages: '@astrojs/sitemap': 3.0.3 '@pagefind/default-ui': 1.0.3 '@types/mdast': 3.0.12 - astro: 3.6.4(typescript@4.9.5) + astro: 3.6.4(typescript@5.3.3) astro-expressive-code: 0.29.2(astro@3.6.4) bcp-47: 2.1.0 execa: 8.0.1 @@ -6067,7 +6067,7 @@ packages: - supports-color dev: true - /@typescript-eslint/eslint-plugin@6.18.1(@typescript-eslint/parser@6.18.1)(eslint@8.56.0)(typescript@4.9.5): + /@typescript-eslint/eslint-plugin@6.18.1(@typescript-eslint/parser@6.18.1)(eslint@8.56.0)(typescript@5.3.3): resolution: {integrity: sha512-nISDRYnnIpk7VCFrGcu1rnZfM1Dh9LRHnfgdkjcbi/l7g16VYRri3TjXi9Ir4lOZSw5N/gnV/3H7jIPQ8Q4daA==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -6079,10 +6079,10 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.6.2 - '@typescript-eslint/parser': 6.18.1(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/parser': 6.18.1(eslint@8.56.0)(typescript@5.3.3) '@typescript-eslint/scope-manager': 6.18.1 - '@typescript-eslint/type-utils': 6.18.1(eslint@8.56.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.18.1(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/type-utils': 6.18.1(eslint@8.56.0)(typescript@5.3.3) + '@typescript-eslint/utils': 6.18.1(eslint@8.56.0)(typescript@5.3.3) '@typescript-eslint/visitor-keys': 6.18.1 debug: 4.3.4(supports-color@9.4.0) eslint: 8.56.0 @@ -6090,8 +6090,8 @@ packages: ignore: 5.2.4 natural-compare: 1.4.0 semver: 7.5.4 - ts-api-utils: 1.0.1(typescript@4.9.5) - typescript: 4.9.5 + ts-api-utils: 1.0.1(typescript@5.3.3) + typescript: 5.3.3 transitivePeerDependencies: - supports-color dev: true @@ -6116,7 +6116,7 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@4.9.5): + /@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3): resolution: {integrity: sha512-zct/MdJnVaRRNy9e84XnVtRv9Vf91/qqe+hZJtKanjojud4wAVy/7lXxJmMyX6X6J+xc6c//YEWvpeif8cAhWA==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -6128,11 +6128,11 @@ packages: dependencies: '@typescript-eslint/scope-manager': 6.18.1 '@typescript-eslint/types': 6.18.1 - '@typescript-eslint/typescript-estree': 6.18.1(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 6.18.1(typescript@5.3.3) '@typescript-eslint/visitor-keys': 6.18.1 debug: 4.3.4(supports-color@9.4.0) eslint: 8.56.0 - typescript: 4.9.5 + typescript: 5.3.3 transitivePeerDependencies: - supports-color dev: true @@ -6181,7 +6181,7 @@ packages: - supports-color dev: true - /@typescript-eslint/type-utils@6.18.1(eslint@8.56.0)(typescript@4.9.5): + /@typescript-eslint/type-utils@6.18.1(eslint@8.56.0)(typescript@5.3.3): resolution: {integrity: sha512-wyOSKhuzHeU/5pcRDP2G2Ndci+4g653V43gXTpt4nbyoIOAASkGDA9JIAgbQCdCkcr1MvpSYWzxTz0olCn8+/Q==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -6191,12 +6191,12 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 6.18.1(typescript@4.9.5) - '@typescript-eslint/utils': 6.18.1(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 6.18.1(typescript@5.3.3) + '@typescript-eslint/utils': 6.18.1(eslint@8.56.0)(typescript@5.3.3) debug: 4.3.4(supports-color@9.4.0) eslint: 8.56.0 - ts-api-utils: 1.0.1(typescript@4.9.5) - typescript: 4.9.5 + ts-api-utils: 1.0.1(typescript@5.3.3) + typescript: 5.3.3 transitivePeerDependencies: - supports-color dev: true @@ -6258,7 +6258,7 @@ packages: - supports-color dev: true - /@typescript-eslint/typescript-estree@6.18.1(typescript@4.9.5): + /@typescript-eslint/typescript-estree@6.18.1(typescript@5.3.3): resolution: {integrity: sha512-fv9B94UAhywPRhUeeV/v+3SBDvcPiLxRZJw/xZeeGgRLQZ6rLMG+8krrJUyIf6s1ecWTzlsbp0rlw7n9sjufHA==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -6274,8 +6274,8 @@ packages: is-glob: 4.0.3 minimatch: 9.0.3 semver: 7.5.4 - ts-api-utils: 1.0.1(typescript@4.9.5) - typescript: 4.9.5 + ts-api-utils: 1.0.1(typescript@5.3.3) + typescript: 5.3.3 transitivePeerDependencies: - supports-color dev: true @@ -6320,7 +6320,7 @@ packages: - typescript dev: true - /@typescript-eslint/utils@6.18.1(eslint@8.56.0)(typescript@4.9.5): + /@typescript-eslint/utils@6.18.1(eslint@8.56.0)(typescript@5.3.3): resolution: {integrity: sha512-zZmTuVZvD1wpoceHvoQpOiewmWu3uP9FuTWo8vqpy2ffsmfCE8mklRPi+vmnIYAIk9t/4kOThri2QCDgor+OpQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -6331,7 +6331,7 @@ packages: '@types/semver': 7.5.0 '@typescript-eslint/scope-manager': 6.18.1 '@typescript-eslint/types': 6.18.1 - '@typescript-eslint/typescript-estree': 6.18.1(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 6.18.1(typescript@5.3.3) eslint: 8.56.0 semver: 7.5.4 transitivePeerDependencies: @@ -6854,7 +6854,7 @@ packages: peerDependencies: astro: ^3.0.0-beta dependencies: - astro: 3.6.4(typescript@4.9.5) + astro: 3.6.4(typescript@5.3.3) remark-expressive-code: 0.29.2 dev: false @@ -6875,7 +6875,7 @@ packages: - utf-8-validate dev: false - /astro@3.6.4(typescript@4.9.5): + /astro@3.6.4(typescript@5.3.3): resolution: {integrity: sha512-YatUyWEQ9GUC79Wc2zbovy6D6bXPW9++Z6PYs4GDamEDspUSnnzL/INB7WJqgFI0xAFk9jcUr+MZYjkdWqXYTw==} engines: {node: '>=18.14.1', npm: '>=6.14.0'} hasBin: true @@ -6930,7 +6930,7 @@ packages: shikiji: 0.6.10 string-width: 6.1.0 strip-ansi: 7.1.0 - tsconfck: 3.0.0(typescript@4.9.5) + tsconfck: 3.0.0(typescript@5.3.3) unist-util-visit: 4.1.2 vfile: 5.3.7 vite: 4.4.9(@types/node@18.11.9) @@ -16799,13 +16799,13 @@ packages: resolution: {integrity: sha512-cXzueh9pzBCsLzhToB4X4gZCb3KYkrsAcBAX97JnazE74HOl3cpBJYEV7nabHeG/6/WXCU5Yujlde/WPBUwnsg==} dev: false - /ts-api-utils@1.0.1(typescript@4.9.5): + /ts-api-utils@1.0.1(typescript@5.3.3): resolution: {integrity: sha512-lC/RGlPmwdrIBFTX59wwNzqh7aR2otPNPR/5brHZm/XKFYKsfqxihXUe9pU3JI+3vGkl+vyCoNNnPhJn3aLK1A==} engines: {node: '>=16.13.0'} peerDependencies: typescript: '>=4.2.0' dependencies: - typescript: 4.9.5 + typescript: 5.3.3 dev: true /ts-dedent@2.2.0: @@ -16823,7 +16823,7 @@ packages: dependencies: tslib: 2.5.0 - /ts-jest@29.1.1(@babel/core@7.23.2)(@jest/types@29.6.3)(jest@29.7.0)(typescript@4.9.5): + /ts-jest@29.1.1(@babel/core@7.23.2)(@jest/types@29.6.3)(jest@29.7.0)(typescript@5.3.3): resolution: {integrity: sha512-D6xjnnbP17cC85nliwGiL+tpoKN0StpgE0TeOjXQTU6MVCfsB4v7aW05CgQ/1OywGb0x/oy9hHFnN+sczTiRaA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -16854,7 +16854,7 @@ packages: lodash.memoize: 4.1.2 make-error: 1.3.6 semver: 7.5.3 - typescript: 4.9.5 + typescript: 5.3.3 yargs-parser: 21.1.1 dev: true @@ -16898,7 +16898,7 @@ packages: yn: 3.1.1 dev: true - /tsconfck@3.0.0(typescript@4.9.5): + /tsconfck@3.0.0(typescript@5.3.3): resolution: {integrity: sha512-w3wnsIrJNi7avf4Zb0VjOoodoO0woEqGgZGQm+LHH9przdUI+XDKsWAXwxHA1DaRTjeuZNcregSzr7RaA8zG9A==} engines: {node: ^18 || >=20} hasBin: true @@ -16908,7 +16908,7 @@ packages: typescript: optional: true dependencies: - typescript: 4.9.5 + typescript: 5.3.3 dev: false /tsconfig-paths@3.14.1: @@ -17086,6 +17086,12 @@ packages: resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} engines: {node: '>=4.2.0'} hasBin: true + dev: true + + /typescript@5.3.3: + resolution: {integrity: sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==} + engines: {node: '>=14.17'} + hasBin: true /ua-parser-js@0.7.31: resolution: {integrity: sha512-qLK/Xe9E2uzmYI3qLeOmI0tEOt+TBBQyUIAh4aAgU05FVYzeZrKUdkAZfBNVGRaHVgV0TDkdEngJSw/SyQchkQ==} diff --git a/tsconfig.build.json b/tsconfig.build.json index 8464747a45..74a0a85085 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -66,7 +66,7 @@ /* Advanced Options */ "skipLibCheck": true /* Skip type checking of declaration files. */, - "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */, + // "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */, "resolveJsonModule": true } }