summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-11-27 12:48:14 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-11-27 12:48:14 -0500
commit4da4827bcbcdd1ef163f635d9b29416ff272b0bb (patch)
treea8a0f1a8befdb78a554e1be91f2c6059ca3ad5f9 /package.json
parentfd6bba8a2a869eaf2b2c1fa49001f933fce3c618 (diff)
Add JSDoc type annotations to project (rebased)
Diffstat (limited to 'package.json')
-rw-r--r--package.json27
1 files changed, 22 insertions, 5 deletions
diff --git a/package.json b/package.json
index 4e4ca971..c52c926b 100644
--- a/package.json
+++ b/package.json
@@ -9,10 +9,13 @@
"scripts": {
"build": "node ./dev/bin/build.js",
"build-libs": "node ./dev/bin/build-libs.js",
- "test": "npm run test-lint-js && npm run test-lint-css && npm run test-lint-html && npm run test-code && npm run test-build",
+ "test": "npm run test-lint && npm run test-ts && npm run test-ts-dev && npm run test-ts-test && npm run test-lint-css && npm run test-lint-html && npm run test-code && npm run test-manifest && npm run test-build",
"test-lint-js": "npx eslint .",
"test-lint-css": "npx stylelint \"ext/**/*.css\" \"test/**/*.css\" \"dev/**/*.css\"",
"test-lint-html": "npx html-validate \"ext/**/*.html\" \"test/**/*.html\" \"dev/**/*.html\"",
+ "test-ts": "npx tsc --noEmit --project jsconfig.json",
+ "test-ts-dev": "npx tsc --noEmit --project dev/jsconfig.json",
+ "test-ts-test": "npx tsc --noEmit --project test/jsconfig.json",
"test-code": "vitest run",
"test-build": "node ./dev/bin/build.js --dry-run --all",
"license-report": "license-report --output=html --only=prod --fields=name --fields=installedVersion --fields=licenseType --fields=link --html.cssFile=dev/data/legal-npm.css > ext/legal-npm.html",
@@ -38,17 +41,30 @@
},
"devDependencies": {
"@playwright/test": "^1.39.0",
- "@types/node": "^20.8.10",
+ "@stylistic/eslint-plugin-ts": "^1.4.1",
+ "@types/assert": "^1.5.10",
+ "@types/browserify": "^12.0.40",
+ "@types/chrome": "^0.0.253",
+ "@types/css": "^0.0.37",
+ "@types/events": "^3.0.3",
+ "@types/firefox-webext-browser": "^120.0.0",
+ "@types/handlebars": "^4.1.0",
+ "@types/jsdom": "^21.1.6",
+ "@types/node": "^20.10.0",
+ "@types/wanakana": "^4.0.6",
+ "@typescript-eslint/eslint-plugin": "^6.12.0",
+ "@typescript-eslint/parser": "^6.12.0",
"@vitest/coverage-v8": "^0.34.6",
"ajv": "^8.12.0",
"css": "^3.0.0",
"dotenv": "^16.3.1",
"esbuild": "^0.19.5",
- "eslint": "^8.52.0",
+ "eslint": "^8.54.0",
"eslint-plugin-header": "^3.1.1",
- "eslint-plugin-jsdoc": "^46.8.2",
+ "eslint-plugin-jsdoc": "^46.9.0",
"eslint-plugin-jsonc": "^2.10.0",
- "eslint-plugin-no-unsanitized": "^4.0.1",
+ "eslint-plugin-no-unsanitized": "^4.0.2",
+ "eslint-plugin-unused-imports": "^3.0.0",
"eslint-plugin-vitest": "^0.3.9",
"fake-indexeddb": "^5.0.1",
"html-validate": "^8.7.0",
@@ -57,6 +73,7 @@
"license-report": "^6.5.0",
"stylelint": "^15.11.0",
"stylelint-config-recommended": "^13.0.0",
+ "typescript": "^5.2.2",
"vitest": "^0.34.6"
},
"dependencies": {