diff --git a/package.json b/package.json index 8a7e6c75f..90bff2b5f 100644 --- a/package.json +++ b/package.json @@ -21,12 +21,11 @@ "changelog:update": "yarn workspaces foreach --all --no-private --parallel --interlaced --verbose run changelog:update", "changelog:validate": "yarn workspaces foreach --all --no-private --parallel --interlaced --verbose run changelog:validate", "clean": "rimraf --glob './*.tsbuildinfo' && yarn workspaces foreach --all --parallel --interlaced --verbose run clean", - "lint": "yarn lint:eslint && yarn lint:misc --check && yarn constraints && yarn lint:dependencies", - "lint:dependencies": "depcheck && yarn dedupe --check", - "lint:dependencies:fix": "depcheck && yarn dedupe", + "lint": "yarn workspaces foreach --all --parallel run lint:eslint && yarn lint:misc --check && yarn constraints && yarn lint:dependencies", + "lint:dependencies": "yarn workspaces foreach --all --parallel --verbose run lint:dependencies && yarn dedupe --check", "lint:eslint": "eslint . --cache --ext js,mjs,cjs,ts,mts,cts", - "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write && yarn constraints --fix && yarn lint:dependencies:fix", - "lint:misc": "prettier '**/*.json' '**/*.md' '**/*.html' '!**/CHANGELOG.old.md' '**/*.yml' '!.yarnrc.yml' '!merged-packages/**' --ignore-path .gitignore", + "lint:fix": "yarn constraints --fix && yarn workspaces foreach --all --parallel run lint:eslint --fix && yarn lint:misc --write && yarn dedupe", + "lint:misc": "prettier --no-error-on-unmatched-pattern '**/*.json' '**/*.md' '**/*.html' '!**/CHANGELOG.old.md' '**/*.yml' '!.yarnrc.yml' '!merged-packages/**' --ignore-path .gitignore", "prepack": "./scripts/prepack.sh", "test": "yarn workspaces foreach --all --parallel --verbose run test", "test:clean": "yarn workspaces foreach --all --parallel --verbose run test:clean && yarn test", @@ -46,8 +45,9 @@ "@types/node": "^18.18.14", "@typescript-eslint/eslint-plugin": "^8.1.0", "@typescript-eslint/parser": "^8.1.0", + "@vitest/coverage-v8": "^2.0.5", "@yarnpkg/types": "^4.0.0", - "depcheck": "^1.4.3", + "depcheck": "^1.4.7", "eslint": "^8.57.0", "eslint-config-prettier": "^8.8.0", "eslint-plugin-import-x": "^0.5.1", diff --git a/packages/extension/package.json b/packages/extension/package.json index b3cce458e..68ca6c89d 100644 --- a/packages/extension/package.json +++ b/packages/extension/package.json @@ -17,6 +17,11 @@ "build:vite": "vite build --config vite.config.ts", "changelog:validate": "../../scripts/validate-changelog.sh @ocap/extension", "clean": "rimraf --glob ./dist './*.tsbuildinfo'", + "lint": "yarn lint:eslint && yarn lint:misc --check && yarn constraints && yarn lint:dependencies", + "lint:dependencies": "depcheck", + "lint:eslint": "eslint . --cache --ext js,mjs,cjs,ts,mts,cts", + "lint:fix": "yarn constraints --fix && yarn lint:eslint --fix && yarn lint:misc --write", + "lint:misc": "prettier --no-error-on-unmatched-pattern '**/*.json' '**/*.md' '**/*.html' '!**/CHANGELOG.old.md' '**/*.yml' '!.yarnrc.yml' '!merged-packages/**' --ignore-path .gitignore", "publish:preview": "yarn npm publish --tag preview", "start": "vite --config vite.config.ts & vite build --watch --config vite.config.ts", "test": "vitest run --config vitest.config.ts", @@ -26,7 +31,7 @@ "test:watch": "vitest --config vitest.config.ts" }, "dependencies": { - "@endo/lockdown": "^1.0.9", + "@endo/eventual-send": "^1.2.4", "@endo/promise-kit": "^1.1.4", "@metamask/snaps-utils": "^7.8.0", "@metamask/utils": "^9.1.0", @@ -37,16 +42,27 @@ "devDependencies": { "@arethetypeswrong/cli": "^0.15.3", "@metamask/auto-changelog": "^3.4.4", + "@metamask/eslint-config": "^13.0.0", + "@metamask/eslint-config-nodejs": "^13.0.0", + "@metamask/eslint-config-typescript": "^13.0.0", "@ocap/test-utils": "workspace:^", "@types/chrome": "^0.0.268", - "@vitest/coverage-v8": "^2.0.5", + "@typescript-eslint/eslint-plugin": "^8.1.0", + "@typescript-eslint/parser": "^8.1.0", "cheerio": "^1.0.0-rc.12", - "deepmerge": "^4.3.1", + "depcheck": "^1.4.7", + "eslint": "^8.57.0", + "eslint-config-prettier": "^8.8.0", + "eslint-plugin-import-x": "^0.5.1", + "eslint-plugin-jsdoc": "^47.0.2", + "eslint-plugin-n": "^16.6.2", + "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-promise": "^6.1.1", + "eslint-plugin-vitest": "^0.4.1", "jsdom": "^24.1.1", "prettier": "^2.7.1", "rimraf": "^6.0.1", "typedoc": "^0.24.8", - "typedoc-plugin-missing-exports": "^2.0.0", "typescript": "~5.5.4", "vite": "^5.3.5", "vite-plugin-static-copy": "^1.0.6", diff --git a/packages/extension/src/background.ts b/packages/extension/src/background.ts index eff0c6b8e..ddf252964 100644 --- a/packages/extension/src/background.ts +++ b/packages/extension/src/background.ts @@ -1,7 +1,5 @@ -/* eslint-disable import-x/no-unassigned-import */ import './dev-console.js'; import './endoify.js'; -/* eslint-enable import-x/no-unassigned-import */ import type { ExtensionMessage } from './shared.js'; import { Command, makeHandledCallback } from './shared.js'; diff --git a/packages/extension/src/endoify.test.ts b/packages/extension/src/endoify.test.ts index fae8b293b..9caf358c8 100644 --- a/packages/extension/src/endoify.test.ts +++ b/packages/extension/src/endoify.test.ts @@ -1,5 +1,4 @@ import './endoify.js'; -// eslint-disable-next-line n/no-extraneous-import import type { HandledPromiseConstructor } from '@endo/eventual-send'; import { describe, expect, it } from 'vitest'; diff --git a/packages/extension/src/endoify.ts b/packages/extension/src/endoify.ts index 11479b6c9..58ad152ae 100644 --- a/packages/extension/src/endoify.ts +++ b/packages/extension/src/endoify.ts @@ -1,3 +1 @@ -/* eslint-disable import-x/extensions */ -/* eslint-disable import-x/no-unassigned-import */ import '@ocap/shims/endoify'; diff --git a/packages/shims/package.json b/packages/shims/package.json index 6ac347bfc..1081d73ee 100644 --- a/packages/shims/package.json +++ b/packages/shims/package.json @@ -23,6 +23,11 @@ "build:docs": "typedoc", "changelog:validate": "../../scripts/validate-changelog.sh @ocap/shims", "clean": "rimraf --glob ./dist './*.tsbuildinfo'", + "lint": "yarn lint:eslint && yarn lint:misc --check && yarn constraints && yarn lint:dependencies", + "lint:dependencies": "depcheck", + "lint:eslint": "eslint . --cache --ext js,mjs,cjs,ts,mts,cts", + "lint:fix": "yarn constraints --fix && yarn lint:eslint --fix && yarn lint:misc --write", + "lint:misc": "prettier --no-error-on-unmatched-pattern '**/*.json' '**/*.md' '**/*.html' '!**/CHANGELOG.old.md' '**/*.yml' '!.yarnrc.yml' '!merged-packages/**' --ignore-path .gitignore", "publish:preview": "yarn npm publish --tag preview", "test": "vitest run --config vitest.config.ts", "test:clean": "yarn test --no-cache --coverage.clean", @@ -38,7 +43,21 @@ "devDependencies": { "@endo/bundle-source": "^3.3.0", "@metamask/auto-changelog": "^3.4.4", - "deepmerge": "^4.3.1", + "@metamask/eslint-config": "^13.0.0", + "@metamask/eslint-config-nodejs": "^13.0.0", + "@metamask/eslint-config-typescript": "^13.0.0", + "@typescript-eslint/eslint-plugin": "^8.1.0", + "@typescript-eslint/parser": "^8.1.0", + "depcheck": "^1.4.7", + "eslint": "^8.57.0", + "eslint-config-prettier": "^8.8.0", + "eslint-plugin-import-x": "^0.5.1", + "eslint-plugin-jsdoc": "^47.0.2", + "eslint-plugin-n": "^16.6.2", + "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-promise": "^6.1.1", + "eslint-plugin-vitest": "^0.4.1", + "prettier": "^2.7.1", "rimraf": "^6.0.1", "typescript": "~5.5.4", "vite": "^5.3.5", diff --git a/packages/shims/scripts/bundle.js b/packages/shims/scripts/bundle.js index a4e8d0e50..cd6e3cba2 100644 --- a/packages/shims/scripts/bundle.js +++ b/packages/shims/scripts/bundle.js @@ -20,7 +20,7 @@ const argv = Object.freeze([...process.argv]); await mkdir(distDir, { recursive: true }); await rimraf(`${distDir}/*`, { glob: true }); -generateEndoScriptBundle( +await generateEndoScriptBundle( path.resolve(srcDir, 'endoify.js'), path.resolve(distDir, `endoify.js`), { argv }, diff --git a/packages/streams/.eslintrc.cjs b/packages/streams/.eslintrc.cjs new file mode 100644 index 000000000..165e7042e --- /dev/null +++ b/packages/streams/.eslintrc.cjs @@ -0,0 +1,3 @@ +module.exports = { + extends: ['../../.eslintrc.cjs'], +}; diff --git a/packages/streams/package.json b/packages/streams/package.json index b5d4e971e..9e7c7d78c 100644 --- a/packages/streams/package.json +++ b/packages/streams/package.json @@ -33,6 +33,11 @@ "build:docs": "typedoc", "changelog:validate": "../../scripts/validate-changelog.sh streams", "clean": "rimraf --glob ./dist './*.tsbuildinfo'", + "lint": "yarn lint:eslint && yarn lint:misc --check && yarn constraints && yarn lint:dependencies", + "lint:dependencies": "depcheck", + "lint:eslint": "eslint . --cache --ext js,mjs,cjs,ts,mts,cts", + "lint:fix": "yarn constraints --fix && yarn lint:eslint --fix && yarn lint:misc --write", + "lint:misc": "prettier --no-error-on-unmatched-pattern '**/*.json' '**/*.md' '**/*.html' '!**/CHANGELOG.old.md' '**/*.yml' '!.yarnrc.yml' '!merged-packages/**' --ignore-path .gitignore", "publish:preview": "yarn npm publish --tag preview", "test": "vitest run --config vitest.config.ts", "test:clean": "yarn test --no-cache --coverage.clean", @@ -48,16 +53,29 @@ "devDependencies": { "@arethetypeswrong/cli": "^0.15.3", "@metamask/auto-changelog": "^3.4.4", + "@metamask/eslint-config": "^13.0.0", + "@metamask/eslint-config-nodejs": "^13.0.0", + "@metamask/eslint-config-typescript": "^13.0.0", "@ocap/test-utils": "workspace:^", "@ts-bridge/cli": "^0.3.0", "@ts-bridge/shims": "^0.1.1", "@types/jsdom": "^21.1.7", - "@vitest/coverage-v8": "^2.0.5", - "deepmerge": "^4.3.1", + "@typescript-eslint/eslint-plugin": "^8.1.0", + "@typescript-eslint/parser": "^8.1.0", + "depcheck": "^1.4.7", + "eslint": "^8.57.0", + "eslint-config-prettier": "^8.8.0", + "eslint-plugin-import-x": "^0.5.1", + "eslint-plugin-jsdoc": "^47.0.2", + "eslint-plugin-n": "^16.6.2", + "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-promise": "^6.1.1", + "eslint-plugin-vitest": "^0.4.1", "jsdom": "^24.1.1", + "prettier": "^2.7.1", "rimraf": "^6.0.1", + "ses": "^1.7.0", "typedoc": "^0.24.8", - "typedoc-plugin-missing-exports": "^2.0.0", "typescript": "~5.5.4", "vite": "^5.3.5", "vitest": "^2.0.5" diff --git a/packages/test-utils/.eslintrc.cjs b/packages/test-utils/.eslintrc.cjs new file mode 100644 index 000000000..165e7042e --- /dev/null +++ b/packages/test-utils/.eslintrc.cjs @@ -0,0 +1,3 @@ +module.exports = { + extends: ['../../.eslintrc.cjs'], +}; diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index b4d43eb12..b62b3bfcd 100644 --- a/packages/test-utils/package.json +++ b/packages/test-utils/package.json @@ -14,11 +14,30 @@ }, "scripts": { "clean": "rimraf --glob ./dist './*.tsbuildinfo'", + "lint": "yarn lint:eslint && yarn lint:misc --check && yarn constraints && yarn lint:dependencies", + "lint:dependencies": "depcheck", + "lint:eslint": "eslint . --cache --ext js,mjs,cjs,ts,mts,cts", + "lint:fix": "yarn constraints --fix && yarn lint:eslint --fix && yarn lint:misc --write", + "lint:misc": "prettier --no-error-on-unmatched-pattern '**/*.json' '**/*.md' '**/*.html' '!**/CHANGELOG.old.md' '**/*.yml' '!.yarnrc.yml' '!merged-packages/**' --ignore-path .gitignore", "test": "echo 'No tests.' && exit 0" }, "devDependencies": { + "@metamask/eslint-config": "^13.0.0", + "@metamask/eslint-config-nodejs": "^13.0.0", + "@metamask/eslint-config-typescript": "^13.0.0", + "@typescript-eslint/eslint-plugin": "^8.1.0", + "@typescript-eslint/parser": "^8.1.0", + "depcheck": "^1.4.7", + "eslint": "^8.57.0", + "eslint-config-prettier": "^8.8.0", + "eslint-plugin-import-x": "^0.5.1", + "eslint-plugin-jsdoc": "^47.0.2", + "eslint-plugin-n": "^16.6.2", + "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-promise": "^6.1.1", + "eslint-plugin-vitest": "^0.4.1", + "prettier": "^2.7.1", "rimraf": "^6.0.1", - "ses": "^1.7.0", "typescript": "~5.5.4", "vitest": "^2.0.5" }, diff --git a/vitest.config.packages.js b/vitest.config.packages.js index 530e6be21..67711d0ad 100644 --- a/vitest.config.packages.js +++ b/vitest.config.packages.js @@ -2,8 +2,8 @@ // eslint-disable-next-line spaced-comment /// -/* eslint-disable jsdoc/valid-types, import-x/namespace */ import path from 'path'; +// eslint-disable-next-line import-x/namespace import { defineConfig } from 'vite'; import tsconfigPathsPlugin from 'vite-tsconfig-paths'; diff --git a/yarn.config.cjs b/yarn.config.cjs index 77fe09994..049eddd63 100644 --- a/yarn.config.cjs +++ b/yarn.config.cjs @@ -194,6 +194,33 @@ module.exports = defineConfig({ // No non-root packages may have a "prepack" script. workspace.unset('scripts.prepack'); + // All packages except the root must have the same "lint" scripts. + expectWorkspaceField( + workspace, + 'scripts.lint', + 'yarn lint:eslint && yarn lint:misc --check && yarn constraints && yarn lint:dependencies', + ); + expectWorkspaceField( + workspace, + 'scripts.lint:dependencies', + 'depcheck', + ); + expectWorkspaceField( + workspace, + 'scripts.lint:eslint', + 'eslint . --cache --ext js,mjs,cjs,ts,mts,cts', + ); + expectWorkspaceField( + workspace, + 'scripts.lint:fix', + 'yarn constraints --fix && yarn lint:eslint --fix && yarn lint:misc --write', + ); + expectWorkspaceField( + workspace, + 'scripts.lint:misc', + "prettier --no-error-on-unmatched-pattern '**/*.json' '**/*.md' '**/*.html' '!**/CHANGELOG.old.md' '**/*.yml' '!.yarnrc.yml' '!merged-packages/**' --ignore-path .gitignore", + ); + // All non-root packages must have the same "test" script. if (!noBuildOrTests.includes(workspaceBasename)) { expectWorkspaceField( diff --git a/yarn.lock b/yarn.lock index 7587fa559..f788ec267 100644 --- a/yarn.lock +++ b/yarn.lock @@ -206,14 +206,14 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:^7.23.0, @babel/parser@npm:^7.23.6, @babel/parser@npm:^7.24.4, @babel/parser@npm:^7.24.7, @babel/parser@npm:^7.25.0, @babel/parser@npm:^7.25.3": - version: 7.25.3 - resolution: "@babel/parser@npm:7.25.3" +"@babel/parser@npm:^7.23.0, @babel/parser@npm:^7.23.6, @babel/parser@npm:^7.24.7, @babel/parser@npm:^7.25.0, @babel/parser@npm:^7.25.3, @babel/parser@npm:^7.25.4": + version: 7.25.6 + resolution: "@babel/parser@npm:7.25.6" dependencies: - "@babel/types": "npm:^7.25.2" + "@babel/types": "npm:^7.25.6" bin: parser: ./bin/babel-parser.js - checksum: 10/7bd57e89110bdc9cffe0ef2f2286f1cfb9bbb3aa1d9208c287e0bf6a1eb4cfe6ab33958876ebc59aafcbe3e2381c4449240fc7cc2ff32b79bc9db89cd52fc779 + checksum: 10/830aab72116aa14eb8d61bfa8f9d69fc8f3a43d909ce993cb4350ae14d3af1a2f740a54410a22d821c48a253263643dfecbc094f9608e6a70ce9ff3c0bbfe91a languageName: node linkType: hard @@ -243,14 +243,14 @@ __metadata: languageName: node linkType: hard -"@babel/types@npm:^7.17.0, @babel/types@npm:^7.23.0, @babel/types@npm:^7.24.0, @babel/types@npm:^7.24.7, @babel/types@npm:^7.25.0, @babel/types@npm:^7.25.2": - version: 7.25.2 - resolution: "@babel/types@npm:7.25.2" +"@babel/types@npm:^7.17.0, @babel/types@npm:^7.23.0, @babel/types@npm:^7.24.0, @babel/types@npm:^7.24.7, @babel/types@npm:^7.25.0, @babel/types@npm:^7.25.2, @babel/types@npm:^7.25.4, @babel/types@npm:^7.25.6": + version: 7.25.6 + resolution: "@babel/types@npm:7.25.6" dependencies: "@babel/helper-string-parser": "npm:^7.24.8" "@babel/helper-validator-identifier": "npm:^7.24.7" to-fast-properties: "npm:^2.0.0" - checksum: 10/ccf5399db1dcd6dd87b84a6f7bc8dd241e04a326f4f038c973c26ccb69cd360c8f2276603f584c58fd94da95229313060b27baceb0d9b18a435742d3f616afd1 + checksum: 10/7b54665e1b51f525fe0f451efdd9fe7a4a6dfba3fd4956c3530bc77336b66ffe3d78c093796ed044119b5d213176af7cf326f317a2057c538d575c6cefcb3562 languageName: node linkType: hard @@ -1251,24 +1251,35 @@ __metadata: resolution: "@ocap/extension@workspace:packages/extension" dependencies: "@arethetypeswrong/cli": "npm:^0.15.3" - "@endo/lockdown": "npm:^1.0.9" + "@endo/eventual-send": "npm:^1.2.4" "@endo/promise-kit": "npm:^1.1.4" "@metamask/auto-changelog": "npm:^3.4.4" + "@metamask/eslint-config": "npm:^13.0.0" + "@metamask/eslint-config-nodejs": "npm:^13.0.0" + "@metamask/eslint-config-typescript": "npm:^13.0.0" "@metamask/snaps-utils": "npm:^7.8.0" "@metamask/utils": "npm:^9.1.0" "@ocap/shims": "workspace:^" "@ocap/streams": "workspace:^" "@ocap/test-utils": "workspace:^" "@types/chrome": "npm:^0.0.268" - "@vitest/coverage-v8": "npm:^2.0.5" + "@typescript-eslint/eslint-plugin": "npm:^8.1.0" + "@typescript-eslint/parser": "npm:^8.1.0" cheerio: "npm:^1.0.0-rc.12" - deepmerge: "npm:^4.3.1" + depcheck: "npm:^1.4.7" + eslint: "npm:^8.57.0" + eslint-config-prettier: "npm:^8.8.0" + eslint-plugin-import-x: "npm:^0.5.1" + eslint-plugin-jsdoc: "npm:^47.0.2" + eslint-plugin-n: "npm:^16.6.2" + eslint-plugin-prettier: "npm:^4.2.1" + eslint-plugin-promise: "npm:^6.1.1" + eslint-plugin-vitest: "npm:^0.4.1" jsdom: "npm:^24.1.1" prettier: "npm:^2.7.1" rimraf: "npm:^6.0.1" ses: "npm:^1.7.0" typedoc: "npm:^0.24.8" - typedoc-plugin-missing-exports: "npm:^2.0.0" typescript: "npm:~5.5.4" vite: "npm:^5.3.5" vite-plugin-static-copy: "npm:^1.0.6" @@ -1293,8 +1304,9 @@ __metadata: "@types/node": "npm:^18.18.14" "@typescript-eslint/eslint-plugin": "npm:^8.1.0" "@typescript-eslint/parser": "npm:^8.1.0" + "@vitest/coverage-v8": "npm:^2.0.5" "@yarnpkg/types": "npm:^4.0.0" - depcheck: "npm:^1.4.3" + depcheck: "npm:^1.4.7" eslint: "npm:^8.57.0" eslint-config-prettier: "npm:^8.8.0" eslint-plugin-import-x: "npm:^0.5.1" @@ -1324,7 +1336,21 @@ __metadata: "@endo/eventual-send": "npm:^1.2.4" "@endo/lockdown": "npm:^1.0.9" "@metamask/auto-changelog": "npm:^3.4.4" - deepmerge: "npm:^4.3.1" + "@metamask/eslint-config": "npm:^13.0.0" + "@metamask/eslint-config-nodejs": "npm:^13.0.0" + "@metamask/eslint-config-typescript": "npm:^13.0.0" + "@typescript-eslint/eslint-plugin": "npm:^8.1.0" + "@typescript-eslint/parser": "npm:^8.1.0" + depcheck: "npm:^1.4.7" + eslint: "npm:^8.57.0" + eslint-config-prettier: "npm:^8.8.0" + eslint-plugin-import-x: "npm:^0.5.1" + eslint-plugin-jsdoc: "npm:^47.0.2" + eslint-plugin-n: "npm:^16.6.2" + eslint-plugin-prettier: "npm:^4.2.1" + eslint-plugin-promise: "npm:^6.1.1" + eslint-plugin-vitest: "npm:^0.4.1" + prettier: "npm:^2.7.1" rimraf: "npm:^6.0.1" ses: "npm:^1.7.0" typescript: "npm:~5.5.4" @@ -1341,17 +1367,30 @@ __metadata: "@endo/promise-kit": "npm:^1.1.4" "@endo/stream": "npm:^1.2.2" "@metamask/auto-changelog": "npm:^3.4.4" + "@metamask/eslint-config": "npm:^13.0.0" + "@metamask/eslint-config-nodejs": "npm:^13.0.0" + "@metamask/eslint-config-typescript": "npm:^13.0.0" "@metamask/utils": "npm:^9.1.0" "@ocap/test-utils": "workspace:^" "@ts-bridge/cli": "npm:^0.3.0" "@ts-bridge/shims": "npm:^0.1.1" "@types/jsdom": "npm:^21.1.7" - "@vitest/coverage-v8": "npm:^2.0.5" - deepmerge: "npm:^4.3.1" + "@typescript-eslint/eslint-plugin": "npm:^8.1.0" + "@typescript-eslint/parser": "npm:^8.1.0" + depcheck: "npm:^1.4.7" + eslint: "npm:^8.57.0" + eslint-config-prettier: "npm:^8.8.0" + eslint-plugin-import-x: "npm:^0.5.1" + eslint-plugin-jsdoc: "npm:^47.0.2" + eslint-plugin-n: "npm:^16.6.2" + eslint-plugin-prettier: "npm:^4.2.1" + eslint-plugin-promise: "npm:^6.1.1" + eslint-plugin-vitest: "npm:^0.4.1" jsdom: "npm:^24.1.1" + prettier: "npm:^2.7.1" rimraf: "npm:^6.0.1" + ses: "npm:^1.7.0" typedoc: "npm:^0.24.8" - typedoc-plugin-missing-exports: "npm:^2.0.0" typescript: "npm:~5.5.4" vite: "npm:^5.3.5" vitest: "npm:^2.0.5" @@ -1362,8 +1401,22 @@ __metadata: version: 0.0.0-use.local resolution: "@ocap/test-utils@workspace:packages/test-utils" dependencies: + "@metamask/eslint-config": "npm:^13.0.0" + "@metamask/eslint-config-nodejs": "npm:^13.0.0" + "@metamask/eslint-config-typescript": "npm:^13.0.0" + "@typescript-eslint/eslint-plugin": "npm:^8.1.0" + "@typescript-eslint/parser": "npm:^8.1.0" + depcheck: "npm:^1.4.7" + eslint: "npm:^8.57.0" + eslint-config-prettier: "npm:^8.8.0" + eslint-plugin-import-x: "npm:^0.5.1" + eslint-plugin-jsdoc: "npm:^47.0.2" + eslint-plugin-n: "npm:^16.6.2" + eslint-plugin-prettier: "npm:^4.2.1" + eslint-plugin-promise: "npm:^6.1.1" + eslint-plugin-vitest: "npm:^0.4.1" + prettier: "npm:^2.7.1" rimraf: "npm:^6.0.1" - ses: "npm:^1.7.0" typescript: "npm:~5.5.4" vitest: "npm:^2.0.5" languageName: unknown @@ -2888,7 +2941,7 @@ __metadata: languageName: node linkType: hard -"deepmerge@npm:^4.2.2, deepmerge@npm:^4.3.1": +"deepmerge@npm:^4.2.2": version: 4.3.1 resolution: "deepmerge@npm:4.3.1" checksum: 10/058d9e1b0ff1a154468bf3837aea436abcfea1ba1d165ddaaf48ca93765fdd01a30d33c36173da8fbbed951dd0a267602bc782fe288b0fc4b7e1e7091afc4529 @@ -2902,7 +2955,7 @@ __metadata: languageName: node linkType: hard -"depcheck@npm:^1.4.3": +"depcheck@npm:^1.4.7": version: 1.4.7 resolution: "depcheck@npm:1.4.7" dependencies: @@ -4751,13 +4804,13 @@ __metadata: linkType: hard "magicast@npm:^0.3.4": - version: 0.3.4 - resolution: "magicast@npm:0.3.4" + version: 0.3.5 + resolution: "magicast@npm:0.3.5" dependencies: - "@babel/parser": "npm:^7.24.4" - "@babel/types": "npm:^7.24.0" + "@babel/parser": "npm:^7.25.4" + "@babel/types": "npm:^7.25.4" source-map-js: "npm:^1.2.0" - checksum: 10/704f86639b01c8e063155408cb181d89d4444db3a4a473fb501107f30f19d9c39a159dd315ef9e54a22291c090170044efd9b49a9b3ab8d6deb948a9c99d90b3 + checksum: 10/3a2dba6b0bdde957797361d09c7931ebdc1b30231705360eeb40ed458d28e1c3112841c3ed4e1b87ceb28f741e333c7673cd961193aa9fdb4f4946b202e6205a languageName: node linkType: hard @@ -6469,15 +6522,6 @@ __metadata: languageName: node linkType: hard -"typedoc-plugin-missing-exports@npm:^2.0.0": - version: 2.3.0 - resolution: "typedoc-plugin-missing-exports@npm:2.3.0" - peerDependencies: - typedoc: 0.24.x || 0.25.x - checksum: 10/83ff8affd82fa39a81931e825ef31b51b7470613c71601fde6ff413a5c7571e30734698092a38a437f12c5d3264010696ce9ca806d43485aa11e8208cb4cb323 - languageName: node - linkType: hard - "typedoc@npm:^0.24.8": version: 0.24.8 resolution: "typedoc@npm:0.24.8"