chore: add eslint with typescript-eslint, align package.json scripts

This commit is contained in:
Tiara Rodney 2026-03-13 22:38:36 +01:00
parent b7c6937219
commit 0cea450c0a
No known key found for this signature in database
GPG key ID: 5CD8EC1D46106723
3 changed files with 1261 additions and 18 deletions

View file

@ -3,14 +3,15 @@
"version": "1.0.0",
"description": "port of Python standard library logging module",
"main": "lib/index.js",
"engines": {
"node": ">= 20.11.0"
},
"scripts": {
"test": "jest",
"build": "npm run build:release",
"build:release": "tsc",
"build:debug": "tsc -p tsconfig.debug.json",
"doc": "typedoc --entryPoints src/index.ts --html build/doc",
"publish_": "ts-node -P tsconfig.node.json scripts/publish.ts",
"dist": "ts-node -P tsconfig.node.json scripts/npm-pack.ts build/release dist"
"build/debug": "tsc -p tsconfig.debug.json",
"build/release": "tsc",
"build/doc": "typedoc",
"dist": "ts-node -P tsconfig.node.json scripts/npm-pack.ts build/release dist",
"test-reports/unit": "jest"
},
"repository": {
"type": "git",
@ -19,13 +20,16 @@
"author": "Tiara Rodney",
"license": "UNLICENSED",
"devDependencies": {
"@eslint/js": "^9.39.4",
"@types/jest": "^29.5.14",
"eslint": "^9.39.4",
"jest": "^29.7.0",
"jest-junit": "^16.0.0",
"ts-jest": "^29.3.2",
"ts-node": "^10.9.2",
"typedoc": "^0.28.3",
"typescript": "^5.8.3"
"typescript": "^5.8.3",
"typescript-eslint": "^8.57.0"
},
"overrides": {
"jest": {