mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-06 05:26:54 +08:00
chore: upgrade oxlint
This commit is contained in:
parent
ac1d6f0847
commit
a424f96480
13 changed files with 96 additions and 74 deletions
|
@ -92,7 +92,7 @@
|
|||
"eslint-watch": "8.0.0",
|
||||
"ioredis-mock": "7.4.0",
|
||||
"openapi3-ts": "2.0.2",
|
||||
"oxlint": "0.16.6",
|
||||
"oxlint": "0.16.7",
|
||||
"readline-sync": "1.4.10",
|
||||
"supertest": "6.2.3",
|
||||
"tsx": "4.16.2",
|
||||
|
|
|
@ -199,12 +199,9 @@ export function isDevEnvironment(): boolean {
|
|||
* @returns api object with `id: string`
|
||||
*/
|
||||
|
||||
// oxlint doesnt understand ts overloading
|
||||
// eslint-disable-next-line no-redeclare
|
||||
export function replaceObjectId<T extends { _id: ObjectId }>(
|
||||
data: T
|
||||
): T & { _id: string };
|
||||
// eslint-disable-next-line no-redeclare
|
||||
export function replaceObjectId<T extends { _id: ObjectId }>(
|
||||
data: T | null
|
||||
): (T & { _id: string }) | null;
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
"happy-dom": "15.10.2",
|
||||
"madge": "8.0.0",
|
||||
"normalize.css": "8.0.1",
|
||||
"oxlint": "0.16.6",
|
||||
"oxlint": "0.16.7",
|
||||
"postcss": "8.4.31",
|
||||
"sass": "1.70.0",
|
||||
"subset-font": "2.3.0",
|
||||
|
|
|
@ -28,10 +28,7 @@ for (const [name, data] of Object.entries(metadata)) {
|
|||
};
|
||||
}
|
||||
|
||||
// oxlint doesnt understand ts overloading
|
||||
// eslint-disable-next-line no-redeclare
|
||||
export function get(funboxName: FunboxName): FunboxMetadataWithFunctions;
|
||||
// eslint-disable-next-line no-redeclare
|
||||
export function get(funboxNames: FunboxName[]): FunboxMetadataWithFunctions[];
|
||||
export function get(
|
||||
funboxNameOrNames: FunboxName | FunboxName[]
|
||||
|
|
|
@ -656,12 +656,8 @@ export function isObject(obj: unknown): obj is Record<string, unknown> {
|
|||
return typeof obj === "object" && !Array.isArray(obj) && obj !== null;
|
||||
}
|
||||
|
||||
// oxlint doesnt understand ts overloading
|
||||
// eslint-disable-next-line no-redeclare
|
||||
export function deepClone<T>(obj: T[]): T[];
|
||||
// eslint-disable-next-line no-redeclare
|
||||
export function deepClone<T extends object>(obj: T): T;
|
||||
// eslint-disable-next-line no-redeclare
|
||||
export function deepClone<T>(obj: T): T;
|
||||
export function deepClone<T>(obj: T | T[]): T | T[] {
|
||||
// Check if the value is a primitive (not an object or array)
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
"knip": "2.19.2",
|
||||
"lint-staged": "13.2.3",
|
||||
"only-allow": "1.2.1",
|
||||
"oxlint": "0.16.6",
|
||||
"oxlint": "0.16.7",
|
||||
"prettier": "2.8.8",
|
||||
"turbo": "2.3.3",
|
||||
"vitest": "2.1.9"
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
"chokidar": "3.6.0",
|
||||
"eslint": "8.57.1",
|
||||
"madge": "8.0.0",
|
||||
"oxlint": "0.16.6",
|
||||
"oxlint": "0.16.7",
|
||||
"tsup": "8.4.0",
|
||||
"typescript": "5.5.4",
|
||||
"vitest": "2.1.9"
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
"chokidar": "3.6.0",
|
||||
"eslint": "8.57.1",
|
||||
"madge": "8.0.0",
|
||||
"oxlint": "0.16.6",
|
||||
"oxlint": "0.16.7",
|
||||
"tsup": "8.4.0",
|
||||
"typescript": "5.5.4",
|
||||
"vitest": "2.1.9"
|
||||
|
|
|
@ -462,10 +462,7 @@ const list: Record<FunboxName, FunboxMetadata> = {
|
|||
},
|
||||
};
|
||||
|
||||
// oxlint doesnt understand ts overloading
|
||||
// eslint-disable-next-line no-redeclare
|
||||
export function getFunbox(name: FunboxName): FunboxMetadata;
|
||||
// eslint-disable-next-line no-redeclare
|
||||
export function getFunbox(names: FunboxName[]): FunboxMetadata[];
|
||||
export function getFunbox(
|
||||
nameOrNames: FunboxName | FunboxName[]
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
"@monkeytype/eslint-config": "workspace:*",
|
||||
"eslint": "8.57.1",
|
||||
"nodemon": "3.1.4",
|
||||
"oxlint": "0.16.6"
|
||||
"oxlint": "0.16.7"
|
||||
},
|
||||
"bin": {
|
||||
"monkeytype-release": "./src/index.js",
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
"devDependencies": {
|
||||
"@monkeytype/typescript-config": "workspace:*",
|
||||
"eslint": "8.57.1",
|
||||
"oxlint": "0.16.6",
|
||||
"oxlint": "0.16.7",
|
||||
"typescript": "5.5.4"
|
||||
},
|
||||
"exports": {
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
"chokidar": "3.6.0",
|
||||
"eslint": "8.57.1",
|
||||
"madge": "8.0.0",
|
||||
"oxlint": "0.16.6",
|
||||
"oxlint": "0.16.7",
|
||||
"tsup": "8.4.0",
|
||||
"typescript": "5.5.4",
|
||||
"vitest": "2.1.9",
|
||||
|
|
141
pnpm-lock.yaml
generated
141
pnpm-lock.yaml
generated
|
@ -39,8 +39,8 @@ importers:
|
|||
specifier: 1.2.1
|
||||
version: 1.2.1
|
||||
oxlint:
|
||||
specifier: 0.16.6
|
||||
version: 0.16.6
|
||||
specifier: 0.16.7
|
||||
version: 0.16.7
|
||||
prettier:
|
||||
specifier: 2.8.8
|
||||
version: 2.8.8
|
||||
|
@ -253,8 +253,8 @@ importers:
|
|||
specifier: 2.0.2
|
||||
version: 2.0.2
|
||||
oxlint:
|
||||
specifier: 0.16.6
|
||||
version: 0.16.6
|
||||
specifier: 0.16.7
|
||||
version: 0.16.7
|
||||
readline-sync:
|
||||
specifier: 1.4.10
|
||||
version: 1.4.10
|
||||
|
@ -443,8 +443,8 @@ importers:
|
|||
specifier: 8.0.1
|
||||
version: 8.0.1
|
||||
oxlint:
|
||||
specifier: 0.16.6
|
||||
version: 0.16.6
|
||||
specifier: 0.16.7
|
||||
version: 0.16.7
|
||||
postcss:
|
||||
specifier: 8.4.31
|
||||
version: 8.4.31
|
||||
|
@ -519,8 +519,8 @@ importers:
|
|||
specifier: 8.0.0
|
||||
version: 8.0.0(typescript@5.5.4)
|
||||
oxlint:
|
||||
specifier: 0.16.6
|
||||
version: 0.16.6
|
||||
specifier: 0.16.7
|
||||
version: 0.16.7
|
||||
tsup:
|
||||
specifier: 8.4.0
|
||||
version: 8.4.0(postcss@8.5.3)(tsx@4.16.2)(typescript@5.5.4)(yaml@2.5.0)
|
||||
|
@ -583,8 +583,8 @@ importers:
|
|||
specifier: 8.0.0
|
||||
version: 8.0.0(typescript@5.5.4)
|
||||
oxlint:
|
||||
specifier: 0.16.6
|
||||
version: 0.16.6
|
||||
specifier: 0.16.7
|
||||
version: 0.16.7
|
||||
tsup:
|
||||
specifier: 8.4.0
|
||||
version: 8.4.0(postcss@8.5.3)(tsx@4.16.2)(typescript@5.5.4)(yaml@2.5.0)
|
||||
|
@ -619,8 +619,8 @@ importers:
|
|||
specifier: 3.1.4
|
||||
version: 3.1.4
|
||||
oxlint:
|
||||
specifier: 0.16.6
|
||||
version: 0.16.6
|
||||
specifier: 0.16.7
|
||||
version: 0.16.7
|
||||
|
||||
packages/tsup-config:
|
||||
dependencies:
|
||||
|
@ -635,8 +635,8 @@ importers:
|
|||
specifier: 8.57.1
|
||||
version: 8.57.1
|
||||
oxlint:
|
||||
specifier: 0.16.6
|
||||
version: 0.16.6
|
||||
specifier: 0.16.7
|
||||
version: 0.16.7
|
||||
typescript:
|
||||
specifier: 5.5.4
|
||||
version: 5.5.4
|
||||
|
@ -664,11 +664,11 @@ importers:
|
|||
specifier: 8.0.0
|
||||
version: 8.0.0(typescript@5.5.4)
|
||||
oxlint:
|
||||
specifier: 0.16.6
|
||||
version: 0.16.6
|
||||
specifier: 0.16.7
|
||||
version: 0.16.7
|
||||
tsup:
|
||||
specifier: 8.4.0
|
||||
version: 8.4.0(postcss@8.5.3)(tsx@4.16.2)(typescript@5.5.4)(yaml@2.5.0)
|
||||
version: 8.4.0(postcss@8.5.1)(tsx@4.16.2)(typescript@5.5.4)(yaml@2.5.0)
|
||||
typescript:
|
||||
specifier: 5.5.4
|
||||
version: 5.5.4
|
||||
|
@ -2256,43 +2256,43 @@ packages:
|
|||
resolution: {integrity: sha512-lkC8kZYntxVKr7b8xmjCVUgE0a8xgDakPyDo9uSWavXPyYqLgYYGdEd2j8NxihRyb6UwpX3G/hFUF4/9q2V+/g==}
|
||||
engines: {node: '>=14'}
|
||||
|
||||
'@oxlint/darwin-arm64@0.16.6':
|
||||
resolution: {integrity: sha512-wvW55Br6o08JEmiezMqvo0byZNH9eunCkbouV8rM2gQP6ROv8lbeQdPZLpAeFz0QA4Ca2b2pVo5S3N2fS78d+Q==}
|
||||
'@oxlint/darwin-arm64@0.16.7':
|
||||
resolution: {integrity: sha512-VeWa9qDieR8TsjCLlQ9t0IkFQru3VSv5fwiNzqA14OKosTunFbAp0qaN4kw7bbwdtaVojwg7p0kKKX7TToyHrA==}
|
||||
cpu: [arm64]
|
||||
os: [darwin]
|
||||
|
||||
'@oxlint/darwin-x64@0.16.6':
|
||||
resolution: {integrity: sha512-VezC8yep+1TxVtBsTQz2OHJs9aTuIQ7ISyl5rn1QVQXeG7wdFIIFln3ilu2TtaMjnswEdEsCDqBjyoF1euqQow==}
|
||||
'@oxlint/darwin-x64@0.16.7':
|
||||
resolution: {integrity: sha512-uFRVF91sKIaXAYvJuAwj2t66IW11AmQZlAf1zIAymTZkFg513y7t92SAAPQEE131RU1WF/jKkrBv6kZyiFKddw==}
|
||||
cpu: [x64]
|
||||
os: [darwin]
|
||||
|
||||
'@oxlint/linux-arm64-gnu@0.16.6':
|
||||
resolution: {integrity: sha512-hvpBsP5/bERq8ft4KidszGifWV4ZcXeaJrfNI8CqIbfd4AqGJmnc5d6M2Op/sYdEMjRGdpPqftfzw4D6jDHPIQ==}
|
||||
'@oxlint/linux-arm64-gnu@0.16.7':
|
||||
resolution: {integrity: sha512-4wdrsLT8QE/89ln3WfsfLVvh+FqhDuzNTw2tiV8BNhJRORjenmNH8oX8NAvDXkA2OL/SIQ9YmFrPdh9MLdCPXA==}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
|
||||
'@oxlint/linux-arm64-musl@0.16.6':
|
||||
resolution: {integrity: sha512-PolYYEhYELXaQ0ht0g6Z827rRVDgbi/PQcHFpctiDHbSruW3udIOy9nEOAUt0agSHYrdZcC0NWzISE+CPrM0Yw==}
|
||||
'@oxlint/linux-arm64-musl@0.16.7':
|
||||
resolution: {integrity: sha512-2zC+9HrZ8Cc0w9fdrnFSmLizommZqgzFbWK7PpmNUdvcULT/NFCUA/RVfsxxEcwBCNiEcnay4xTbXnI2UUPXQA==}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
|
||||
'@oxlint/linux-x64-gnu@0.16.6':
|
||||
resolution: {integrity: sha512-y4Lq4mcheXYzyLiS2TG1CaNDfgK+yVmmyJlms010Gs6nd1ejF6cObMuY5g6GLPGRJMJxG4fhbE955I2y50+Ltg==}
|
||||
'@oxlint/linux-x64-gnu@0.16.7':
|
||||
resolution: {integrity: sha512-6w7H+deX+5Y6J3mcjOTrnKTY5i/EV2O/2+U3GblOFov101W4KV1IFhkKjuHl+JvIFRi364ns98fOQNr9gk+Wsw==}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
|
||||
'@oxlint/linux-x64-musl@0.16.6':
|
||||
resolution: {integrity: sha512-p3Njn7MzBsIJr+23HtxItA86UP01xhcWfwU35RGWVyTNbXIdNoAkaD+DjXQj2KSEauO7rRDAZbrTA+40NWNNkQ==}
|
||||
'@oxlint/linux-x64-musl@0.16.7':
|
||||
resolution: {integrity: sha512-zFwBAzefgZNL2gQnQwiFnVmhPKXlIBp1ETjNarja56oWPUeWCwVvls1MQAvNgPjHDVdS40Vnka0DOHUelQk67Q==}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
|
||||
'@oxlint/win32-arm64@0.16.6':
|
||||
resolution: {integrity: sha512-IdySuXzslSnZEk9F2mRx1cjyPsHM8ny2xQd+FEbWhDhfwxVZCK+m9hXoEnqVQ6FLXQsOjWVutGtYb+EpDiZxlQ==}
|
||||
'@oxlint/win32-arm64@0.16.7':
|
||||
resolution: {integrity: sha512-ORQS2kw73Pqn8jE0oXlTol4W9KU+83aBQ0DMRg8vCl7ghhZ3BbJl87K3C+A5eGaH7wDHj/f8WtAgW6y460JtjQ==}
|
||||
cpu: [arm64]
|
||||
os: [win32]
|
||||
|
||||
'@oxlint/win32-x64@0.16.6':
|
||||
resolution: {integrity: sha512-DqkFdDX1ULoizFBg21TMIe6B5L2a59KljqpN1S7H4+IXhxmRcc71bpZ7FRwrxjrlRhtCD4SAPTZadBI9qRhViw==}
|
||||
'@oxlint/win32-x64@0.16.7':
|
||||
resolution: {integrity: sha512-kUGut1deJm9JnKK1mYP+5F2QaxL7yY0Z0yiSGkLHjhwuYSkpprb9z/PePcTsu2yhs4fDtOriDxT8fUZEu8xvhQ==}
|
||||
cpu: [x64]
|
||||
os: [win32]
|
||||
|
||||
|
@ -7246,8 +7246,8 @@ packages:
|
|||
resolution: {integrity: sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
|
||||
oxlint@0.16.6:
|
||||
resolution: {integrity: sha512-pesehI0loV2h2k95mFRsUg6uNgGw2RPs1pcuAfPRJUwGehkfraMVCQofwqsMUeufmXygweH734vhKzQ24r3djA==}
|
||||
oxlint@0.16.7:
|
||||
resolution: {integrity: sha512-/ab3XRLSbZT25/M2Hm7MKrcQDsqzk1DcWyfFTRidorOvYAkgk0p7gW93e7nDPHnatsdLqSWIShkXO1DFOsP3Nw==}
|
||||
engines: {node: '>=8.*'}
|
||||
hasBin: true
|
||||
|
||||
|
@ -11779,28 +11779,28 @@ snapshots:
|
|||
|
||||
'@opentelemetry/semantic-conventions@1.21.0': {}
|
||||
|
||||
'@oxlint/darwin-arm64@0.16.6':
|
||||
'@oxlint/darwin-arm64@0.16.7':
|
||||
optional: true
|
||||
|
||||
'@oxlint/darwin-x64@0.16.6':
|
||||
'@oxlint/darwin-x64@0.16.7':
|
||||
optional: true
|
||||
|
||||
'@oxlint/linux-arm64-gnu@0.16.6':
|
||||
'@oxlint/linux-arm64-gnu@0.16.7':
|
||||
optional: true
|
||||
|
||||
'@oxlint/linux-arm64-musl@0.16.6':
|
||||
'@oxlint/linux-arm64-musl@0.16.7':
|
||||
optional: true
|
||||
|
||||
'@oxlint/linux-x64-gnu@0.16.6':
|
||||
'@oxlint/linux-x64-gnu@0.16.7':
|
||||
optional: true
|
||||
|
||||
'@oxlint/linux-x64-musl@0.16.6':
|
||||
'@oxlint/linux-x64-musl@0.16.7':
|
||||
optional: true
|
||||
|
||||
'@oxlint/win32-arm64@0.16.6':
|
||||
'@oxlint/win32-arm64@0.16.7':
|
||||
optional: true
|
||||
|
||||
'@oxlint/win32-x64@0.16.6':
|
||||
'@oxlint/win32-x64@0.16.7':
|
||||
optional: true
|
||||
|
||||
'@pkgjs/parseargs@0.11.0':
|
||||
|
@ -17772,16 +17772,16 @@ snapshots:
|
|||
|
||||
os-tmpdir@1.0.2: {}
|
||||
|
||||
oxlint@0.16.6:
|
||||
oxlint@0.16.7:
|
||||
optionalDependencies:
|
||||
'@oxlint/darwin-arm64': 0.16.6
|
||||
'@oxlint/darwin-x64': 0.16.6
|
||||
'@oxlint/linux-arm64-gnu': 0.16.6
|
||||
'@oxlint/linux-arm64-musl': 0.16.6
|
||||
'@oxlint/linux-x64-gnu': 0.16.6
|
||||
'@oxlint/linux-x64-musl': 0.16.6
|
||||
'@oxlint/win32-arm64': 0.16.6
|
||||
'@oxlint/win32-x64': 0.16.6
|
||||
'@oxlint/darwin-arm64': 0.16.7
|
||||
'@oxlint/darwin-x64': 0.16.7
|
||||
'@oxlint/linux-arm64-gnu': 0.16.7
|
||||
'@oxlint/linux-arm64-musl': 0.16.7
|
||||
'@oxlint/linux-x64-gnu': 0.16.7
|
||||
'@oxlint/linux-x64-musl': 0.16.7
|
||||
'@oxlint/win32-arm64': 0.16.7
|
||||
'@oxlint/win32-x64': 0.16.7
|
||||
|
||||
p-defer@3.0.0: {}
|
||||
|
||||
|
@ -18064,6 +18064,14 @@ snapshots:
|
|||
|
||||
possible-typed-array-names@1.0.0: {}
|
||||
|
||||
postcss-load-config@6.0.1(postcss@8.5.1)(tsx@4.16.2)(yaml@2.5.0):
|
||||
dependencies:
|
||||
lilconfig: 3.1.3
|
||||
optionalDependencies:
|
||||
postcss: 8.5.1
|
||||
tsx: 4.16.2
|
||||
yaml: 2.5.0
|
||||
|
||||
postcss-load-config@6.0.1(postcss@8.5.3)(tsx@4.16.2)(yaml@2.5.0):
|
||||
dependencies:
|
||||
lilconfig: 3.1.3
|
||||
|
@ -19695,6 +19703,33 @@ snapshots:
|
|||
|
||||
tsscmp@1.0.6: {}
|
||||
|
||||
tsup@8.4.0(postcss@8.5.1)(tsx@4.16.2)(typescript@5.5.4)(yaml@2.5.0):
|
||||
dependencies:
|
||||
bundle-require: 5.1.0(esbuild@0.25.0)
|
||||
cac: 6.7.14
|
||||
chokidar: 4.0.3
|
||||
consola: 3.4.0
|
||||
debug: 4.4.0
|
||||
esbuild: 0.25.0
|
||||
joycon: 3.1.1
|
||||
picocolors: 1.1.1
|
||||
postcss-load-config: 6.0.1(postcss@8.5.1)(tsx@4.16.2)(yaml@2.5.0)
|
||||
resolve-from: 5.0.0
|
||||
rollup: 4.34.8
|
||||
source-map: 0.8.0-beta.0
|
||||
sucrase: 3.35.0
|
||||
tinyexec: 0.3.2
|
||||
tinyglobby: 0.2.12
|
||||
tree-kill: 1.2.2
|
||||
optionalDependencies:
|
||||
postcss: 8.5.1
|
||||
typescript: 5.5.4
|
||||
transitivePeerDependencies:
|
||||
- jiti
|
||||
- supports-color
|
||||
- tsx
|
||||
- yaml
|
||||
|
||||
tsup@8.4.0(postcss@8.5.3)(tsx@4.16.2)(typescript@5.5.4)(yaml@2.5.0):
|
||||
dependencies:
|
||||
bundle-require: 5.1.0(esbuild@0.25.0)
|
||||
|
@ -20213,7 +20248,7 @@ snapshots:
|
|||
|
||||
vite-plugin-oxlint@1.3.1(vite@6.3.0(@types/node@20.14.11)(sass@1.70.0)(terser@5.31.3)(tsx@4.16.2)(yaml@2.5.0)):
|
||||
dependencies:
|
||||
oxlint: 0.16.6
|
||||
oxlint: 0.16.7
|
||||
package-manager-detector: 1.1.0
|
||||
vite: 6.3.0(@types/node@20.14.11)(sass@1.70.0)(terser@5.31.3)(tsx@4.16.2)(yaml@2.5.0)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue