From 0de3f98cf7d9dc00e8e30a466fb05ce8a2bb6500 Mon Sep 17 00:00:00 2001 From: Pascal Reitermann Date: Wed, 22 Apr 2026 10:57:56 +0200 Subject: [PATCH] Add ESLint configuration and update deps and scripts for linting support --- eslint.config.mjs | 10 ++++++++++ package.json | 8 ++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 eslint.config.mjs diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 0000000..2e1d783 --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,10 @@ +// @ts-check + +import js from '@eslint/js'; +import { defineConfig } from 'eslint/config'; +import tseslint from 'typescript-eslint'; + +export default defineConfig( + js.configs.recommended, + tseslint.configs.recommended, +); \ No newline at end of file diff --git a/package.json b/package.json index 343d8b9..dde9de7 100644 --- a/package.json +++ b/package.json @@ -19,9 +19,10 @@ "subscribe" ], "scripts": { + "build": "tsc", "dev": "tsc -w", + "lint": "npx eslint .", "index": "ts-node bin/index.js", - "build": "tsc", "package": "pkg package.json", "publish": "yarn audit && npm run build && npm publish --access public" }, @@ -66,13 +67,16 @@ "zip-lib": "1.0.5" }, "devDependencies": { + "@eslint/js": "^10.0.1", "@types/axios": "0.14.4", "@types/concat-stream": "2.0.3", "@types/form-data": "2.5.2", "@types/js-yaml": "4.0.9", "@types/node-fetch": "2.6.12", "@types/signale": "1.4.7", - "typescript": "4.9.5" + "eslint": "^10.2.1", + "typescript": "^4.9.5", + "typescript-eslint": "^8.59.0" }, "signale": { "displayLabel": false,