Skip to content

chore: update ts and es-lint #8405

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

Merged
merged 3 commits into from
Aug 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier"],
"parserOptions": {
"ecmaVersion": 2024,
"sourceType": "module"
},
"rules": {
"react-hooks/exhaustive-deps": "error",
"@typescript-eslint/no-explicit-any": "warn",
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@
"@testing-library/user-event": "^13.5.0",
"@types/fs-extra": "^9.0.1",
"@types/jest": "^26.0.19",
"@types/node": "^12.12.9",
"@types/node": "^20.0.0",
"@types/react": "^18.0.0",
"@types/url-parse": "^1.4.3",
"@typescript-eslint/eslint-plugin": "^6.13.1",
"@typescript-eslint/parser": "^6.13.1",
"axios": "^1.11.0",
"cheerio": "^1.0.0-rc.12",
"classnames": "^2.3.2",
Expand Down Expand Up @@ -79,7 +80,7 @@
"tiny-glob": "0.2.9",
"ts-jest": "^29.1.2",
"ts-node": "^8.5.0",
"typescript": "^4.9",
"typescript": "^5.3.0",
"unist-util-visit": "^4.1.0"
},
"resolutions": {
Expand Down
2 changes: 1 addition & 1 deletion src/directory/generateFlatDirectory.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { fileURLToPath } from 'url';
import path from 'path';
import { writeFile } from 'fs/promises';
import directory from './directory.json' assert { type: 'json' };
import directory from './directory.json' with { type: 'json' };

function flattenJSON(jsonObj, flattened = {}) {
if (Array.isArray(jsonObj.children)) {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"removeComments": true,
"strict": true,
"strictPropertyInitialization": false,
"target": "es2017"
"target": "ES2024"
},
"exclude": ["node_modules"]
}
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"downlevelIteration": true,
"lib": ["es2017", "dom"],
"module": "commonjs",
"lib": ["ES2024", "dom"],
"module": "ESNext",
"resolveJsonModule": true,
"typeRoots": ["node_modules/@types", "capi/node_modules/@types"],
"allowJs": true,
Expand Down
57 changes: 37 additions & 20 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4558,7 +4558,7 @@ __metadata:
languageName: node
linkType: hard

"@types/node@npm:*, @types/node@npm:^12.12.9":
"@types/node@npm:*":
version: 12.20.55
resolution: "@types/node@npm:12.20.55"
checksum: 10c0/3b190bb0410047d489c49bbaab592d2e6630de6a50f00ba3d7d513d59401d279972a8f5a598b5bb8ddc1702f8a2f4ec57a65d93852f9c329639738e7053637d1
Expand All @@ -4572,6 +4572,15 @@ __metadata:
languageName: node
linkType: hard

"@types/node@npm:^20.0.0":
version: 20.19.9
resolution: "@types/node@npm:20.19.9"
dependencies:
undici-types: "npm:~6.21.0"
checksum: 10c0/c6738131f1698258a5ac1e0185e4fc56977f7f566cd0ee11167f93f2339478470257bd82c5e1908a936a204e0ad7996d741356a1a07c04997a236161ea23a874
languageName: node
linkType: hard

"@types/parse5@npm:^5.0.0":
version: 5.0.3
resolution: "@types/parse5@npm:5.0.3"
Expand Down Expand Up @@ -4735,7 +4744,7 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/parser@npm:^5.4.2 || ^6.0.0 || 7.0.0 - 7.2.0":
"@typescript-eslint/parser@npm:^5.4.2 || ^6.0.0 || 7.0.0 - 7.2.0, @typescript-eslint/parser@npm:^6.13.1":
version: 6.21.0
resolution: "@typescript-eslint/parser@npm:6.21.0"
dependencies:
Expand Down Expand Up @@ -6862,10 +6871,11 @@ __metadata:
"@testing-library/user-event": "npm:^13.5.0"
"@types/fs-extra": "npm:^9.0.1"
"@types/jest": "npm:^26.0.19"
"@types/node": "npm:^12.12.9"
"@types/node": "npm:^20.0.0"
"@types/react": "npm:^18.0.0"
"@types/url-parse": "npm:^1.4.3"
"@typescript-eslint/eslint-plugin": "npm:^6.13.1"
"@typescript-eslint/parser": "npm:^6.13.1"
ajv: "npm:^8.16.0"
aws-amplify: "npm:^6.0.9"
axios: "npm:^1.11.0"
Expand Down Expand Up @@ -6914,7 +6924,7 @@ __metadata:
tiny-glob: "npm:0.2.9"
ts-jest: "npm:^29.1.2"
ts-node: "npm:^8.5.0"
typescript: "npm:^4.9"
typescript: "npm:^5.3.0"
unist-util-visit: "npm:^4.1.0"
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -15013,23 +15023,23 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:^4.9":
version: 4.9.5
resolution: "typescript@npm:4.9.5"
"typescript@npm:^5.2.2":
version: 5.3.3
resolution: "typescript@npm:5.3.3"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10c0/5f6cad2e728a8a063521328e612d7876e12f0d8a8390d3b3aaa452a6a65e24e9ac8ea22beb72a924fd96ea0a49ea63bb4e251fb922b12eedfb7f7a26475e5c56
checksum: 10c0/e33cef99d82573624fc0f854a2980322714986bc35b9cb4d1ce736ed182aeab78e2cb32b385efa493b2a976ef52c53e20d6c6918312353a91850e2b76f1ea44f
languageName: node
linkType: hard

"typescript@npm:^5.2.2":
version: 5.3.3
resolution: "typescript@npm:5.3.3"
"typescript@npm:^5.3.0":
version: 5.9.2
resolution: "typescript@npm:5.9.2"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10c0/e33cef99d82573624fc0f854a2980322714986bc35b9cb4d1ce736ed182aeab78e2cb32b385efa493b2a976ef52c53e20d6c6918312353a91850e2b76f1ea44f
checksum: 10c0/cd635d50f02d6cf98ed42de2f76289701c1ec587a363369255f01ed15aaf22be0813226bff3c53e99d971f9b540e0b3cc7583dbe05faded49b1b0bed2f638a18
languageName: node
linkType: hard

Expand All @@ -15043,23 +15053,23 @@ __metadata:
languageName: node
linkType: hard

"typescript@patch:typescript@npm%3A^4.9#optional!builtin<compat/typescript>":
version: 4.9.5
resolution: "typescript@patch:typescript@npm%3A4.9.5#optional!builtin<compat/typescript>::version=4.9.5&hash=289587"
"typescript@patch:typescript@npm%3A^5.2.2#optional!builtin<compat/typescript>":
version: 5.3.3
resolution: "typescript@patch:typescript@npm%3A5.3.3#optional!builtin<compat/typescript>::version=5.3.3&hash=e012d7"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10c0/e3333f887c6829dfe0ab6c1dbe0dd1e3e2aeb56c66460cb85c5440c566f900c833d370ca34eb47558c0c69e78ced4bfe09b8f4f98b6de7afed9b84b8d1dd06a1
checksum: 10c0/1d0a5f4ce496c42caa9a30e659c467c5686eae15d54b027ee7866744952547f1be1262f2d40de911618c242b510029d51d43ff605dba8fb740ec85ca2d3f9500
languageName: node
linkType: hard

"typescript@patch:typescript@npm%3A^5.2.2#optional!builtin<compat/typescript>":
version: 5.3.3
resolution: "typescript@patch:typescript@npm%3A5.3.3#optional!builtin<compat/typescript>::version=5.3.3&hash=e012d7"
"typescript@patch:typescript@npm%3A^5.3.0#optional!builtin<compat/typescript>":
version: 5.9.2
resolution: "typescript@patch:typescript@npm%3A5.9.2#optional!builtin<compat/typescript>::version=5.9.2&hash=5786d5"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10c0/1d0a5f4ce496c42caa9a30e659c467c5686eae15d54b027ee7866744952547f1be1262f2d40de911618c242b510029d51d43ff605dba8fb740ec85ca2d3f9500
checksum: 10c0/34d2a8e23eb8e0d1875072064d5e1d9c102e0bdce56a10a25c0b917b8aa9001a9cf5c225df12497e99da107dc379360bc138163c66b55b95f5b105b50578067e
languageName: node
linkType: hard

Expand Down Expand Up @@ -15104,6 +15114,13 @@ __metadata:
languageName: node
linkType: hard

"undici-types@npm:~6.21.0":
version: 6.21.0
resolution: "undici-types@npm:6.21.0"
checksum: 10c0/c01ed51829b10aa72fc3ce64b747f8e74ae9b60eafa19a7b46ef624403508a54c526ffab06a14a26b3120d055e1104d7abe7c9017e83ced038ea5cf52f8d5e04
languageName: node
linkType: hard

"undici@npm:^5.25.4":
version: 5.29.0
resolution: "undici@npm:5.29.0"
Expand Down