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

7
eslint.config.mjs Normal file
View file

@ -0,0 +1,7 @@
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
export default tseslint.config(
eslint.configs.recommended,
tseslint.configs.recommended,
);

1252
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

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