diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..7dbbe08 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,5 @@ +import eslintConfJs from "eslint-config-javascript" + +export default [ + ...eslintConfJs, +] diff --git a/package.json b/package.json index 7b2b9dd..ab454c9 100644 --- a/package.json +++ b/package.json @@ -38,10 +38,14 @@ "dependencies": { "@swc/helpers": "^0.5.6", "archiver": "^6.0.1", + "@eslint/js": "^9.4.0", + "@types/eslint__js": "^8.42.3", "big-integer": "^1.6.52", "chrono-node": "^2.7.5", "csvnorm": "^1.1.0", - "js-yaml": "^4.1.0" + "js-yaml": "^4.1.0", + "typescript": "^5.4.5", + "typescript-eslint": "^7.11.0" }, "optionalDependencies": { "converter": "0.0.5", @@ -51,9 +55,9 @@ "devDependencies": { "assert": "^2.1.0", "conventional-changelog-cli": "^4.1.0", - "esbuild": "^0.20.0", - "eslint": "^8.56.0", - "eslint-config-javascript": "^2.1.3", + "esbuild": "^0.21.4", + "eslint": "^9.4.0", + "eslint-config-javascript": "^3.0.0", "events": "^3.3.0", "markdown-toc": "^1.2.0", "parcel": "^2.11.0", diff --git a/scripts/balance/aws.js b/scripts/balance/aws.js index 5e659c4..ca6732b 100644 --- a/scripts/balance/aws.js +++ b/scripts/balance/aws.js @@ -9,7 +9,6 @@ import {prettyPrint} from "../helpers.js" const prompt = inquirer.createPromptModule({ output: process.stderr }) const log = process.env.NODE_DEBUG ? console.warn - // eslint-disable-next-line @typescript-eslint/no-empty-function : () => {} diff --git a/scripts/balance/dkb.js b/scripts/balance/dkb.js index dbd198a..5a1455a 100644 --- a/scripts/balance/dkb.js +++ b/scripts/balance/dkb.js @@ -9,7 +9,6 @@ import {prettyPrint} from "../helpers.js" const prompt = inquirer.createPromptModule({ output: process.stderr }) const log = process.env.NODE_DEBUG ? console.warn - // eslint-disable-next-line @typescript-eslint/no-empty-function : () => {} diff --git a/scripts/balance/fidor.js b/scripts/balance/fidor.js index 748ba10..f1dc4cb 100644 --- a/scripts/balance/fidor.js +++ b/scripts/balance/fidor.js @@ -9,7 +9,6 @@ import {prettyPrint} from "../helpers.js" const prompt = inquirer.createPromptModule({ output: process.stderr }) const log = process.env.NODE_DEBUG ? console.warn - // eslint-disable-next-line @typescript-eslint/no-empty-function : () => {} diff --git a/scripts/balance/finvesto.js b/scripts/balance/finvesto.js index 05f2330..8365e54 100644 --- a/scripts/balance/finvesto.js +++ b/scripts/balance/finvesto.js @@ -9,7 +9,6 @@ import {prettyPrint} from "../helpers.js" const prompt = inquirer.createPromptModule({ output: process.stderr }) const log = process.env.NODE_DEBUG ? console.warn - // eslint-disable-next-line @typescript-eslint/no-empty-function : () => {} diff --git a/scripts/balance/hypovereinsbank.js b/scripts/balance/hypovereinsbank.js index 69a2184..1b595d3 100644 --- a/scripts/balance/hypovereinsbank.js +++ b/scripts/balance/hypovereinsbank.js @@ -9,7 +9,6 @@ import {prettyPrint} from "../helpers.js" const prompt = inquirer.createPromptModule({ output: process.stderr }) const log = process.env.NODE_DEBUG ? console.warn - // eslint-disable-next-line @typescript-eslint/no-empty-function : () => {} diff --git a/scripts/balance/mbs.js b/scripts/balance/mbs.js index bd52f9b..3ba1f19 100644 --- a/scripts/balance/mbs.js +++ b/scripts/balance/mbs.js @@ -9,7 +9,6 @@ import {prettyPrint} from "../helpers.js" const prompt = inquirer.createPromptModule({ output: process.stderr }) const log = process.env.NODE_DEBUG ? console.warn - // eslint-disable-next-line @typescript-eslint/no-empty-function : () => {} diff --git a/scripts/balance/paypal.js b/scripts/balance/paypal.js index ff1bb43..4575c68 100644 --- a/scripts/balance/paypal.js +++ b/scripts/balance/paypal.js @@ -9,7 +9,6 @@ import {prettyPrint} from "../helpers.js" const prompt = inquirer.createPromptModule({ output: process.stderr }) const log = process.env.NODE_DEBUG ? console.warn - // eslint-disable-next-line @typescript-eslint/no-empty-function : () => {} diff --git a/scripts/balance/post.js b/scripts/balance/post.js index 0571ff2..5c6308e 100644 --- a/scripts/balance/post.js +++ b/scripts/balance/post.js @@ -6,7 +6,6 @@ import {prettyPrint} from "../helpers.js" const prompt = inquirer.createPromptModule({ output: process.stderr }) const log = process.env.NODE_DEBUG ? console.warn - // eslint-disable-next-line @typescript-eslint/no-empty-function : () => {} diff --git a/scripts/transactions/dkb-visa.js b/scripts/transactions/dkb-visa.js index 97dced6..719d825 100644 --- a/scripts/transactions/dkb-visa.js +++ b/scripts/transactions/dkb-visa.js @@ -121,7 +121,6 @@ async function downloadRange (options = {}) { const endInputSelector = "[tid=toPostingDate]" const log = process.env.NODE_DEBUG ? console.warn - // eslint-disable-next-line @typescript-eslint/no-empty-function : () => {} log( @@ -170,7 +169,6 @@ async function getTransactions (options = {}) { const filePathTemp = temporaryFile({name: "dkb-transactions.csv"}) const log = process.env.NODE_DEBUG ? console.warn - // eslint-disable-next-line @typescript-eslint/no-empty-function : () => {} const loginUrl = `${baseUrl}/banking` diff --git a/scripts/transactions/dkb.js b/scripts/transactions/dkb.js index b09305d..9e3a1fa 100644 --- a/scripts/transactions/dkb.js +++ b/scripts/transactions/dkb.js @@ -117,7 +117,6 @@ async function downloadRange (options = {}) { const endInputSelector = "[name=toTransactionDate]" const log = process.env.NODE_DEBUG ? console.warn - // eslint-disable-next-line @typescript-eslint/no-empty-function : () => {} log( @@ -167,7 +166,6 @@ async function getTransactions (options = {}) { const filePathTemp = temporaryFile({name: "dkb-transactions.csv"}) const log = process.env.NODE_DEBUG ? console.warn - // eslint-disable-next-line @typescript-eslint/no-empty-function : () => {} const loginUrl = `${baseUrl}/banking` diff --git a/scripts/transactions/hypovereinsbank.js b/scripts/transactions/hypovereinsbank.js index d0f8ad5..0b736c0 100644 --- a/scripts/transactions/hypovereinsbank.js +++ b/scripts/transactions/hypovereinsbank.js @@ -110,7 +110,6 @@ async function downloadRange (options = {}) { const endInputSelector = "#dayTo_input" const log = process.env.NODE_DEBUG ? console.warn - // eslint-disable-next-line @typescript-eslint/no-empty-function : () => {} log( @@ -157,7 +156,6 @@ async function getTransactions (options = {}) { const filePathTemp = temporaryFile({name: "hypovereinsbank-transactions.csv"}) const log = process.env.NODE_DEBUG ? console.warn - // eslint-disable-next-line @typescript-eslint/no-empty-function : () => {} const url = `${baseUrl}/login?view=/de/login.jsp` diff --git a/scripts/transactions/mbs.js b/scripts/transactions/mbs.js index f7bac77..aaec68b 100644 --- a/scripts/transactions/mbs.js +++ b/scripts/transactions/mbs.js @@ -108,7 +108,6 @@ async function downloadRange (options = {}) { const endInputSelector = "#zeitraumKalender input[type=text]:last-of-type" const log = process.env.NODE_DEBUG ? console.warn - // eslint-disable-next-line @typescript-eslint/no-empty-function : () => {} log( @@ -177,7 +176,6 @@ async function getTransactions (options = {}) { const filePathTemp = temporaryFile({name: "transactions.csv"}) const log = process.env.NODE_DEBUG ? console.warn - // eslint-disable-next-line @typescript-eslint/no-empty-function : () => {} const url = `${baseUrl}/de/home.html`