Skip to content

Commit 4d64340

Browse files
committed
Upgrade to ESLint 9
1 parent 0eea6f5 commit 4d64340

14 files changed

+13
-20
lines changed

eslint.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import eslintConfJs from "eslint-config-javascript"
2+
3+
export default [
4+
...eslintConfJs,
5+
]

package.json

+8-4
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,14 @@
3838
"dependencies": {
3939
"@swc/helpers": "^0.5.6",
4040
"archiver": "^6.0.1",
41+
"@eslint/js": "^9.4.0",
42+
"@types/eslint__js": "^8.42.3",
4143
"big-integer": "^1.6.52",
4244
"chrono-node": "^2.7.5",
4345
"csvnorm": "^1.1.0",
44-
"js-yaml": "^4.1.0"
46+
"js-yaml": "^4.1.0",
47+
"typescript": "^5.4.5",
48+
"typescript-eslint": "^7.11.0"
4549
},
4650
"optionalDependencies": {
4751
"converter": "0.0.5",
@@ -51,9 +55,9 @@
5155
"devDependencies": {
5256
"assert": "^2.1.0",
5357
"conventional-changelog-cli": "^4.1.0",
54-
"esbuild": "^0.20.0",
55-
"eslint": "^8.56.0",
56-
"eslint-config-javascript": "^2.1.3",
58+
"esbuild": "^0.21.4",
59+
"eslint": "^9.4.0",
60+
"eslint-config-javascript": "^3.0.0",
5761
"events": "^3.3.0",
5862
"markdown-toc": "^1.2.0",
5963
"parcel": "^2.11.0",

scripts/balance/aws.js

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {prettyPrint} from "../helpers.js"
99
const prompt = inquirer.createPromptModule({ output: process.stderr })
1010
const log = process.env.NODE_DEBUG
1111
? console.warn
12-
// eslint-disable-next-line @typescript-eslint/no-empty-function
1312
: () => {}
1413

1514

scripts/balance/dkb.js

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {prettyPrint} from "../helpers.js"
99
const prompt = inquirer.createPromptModule({ output: process.stderr })
1010
const log = process.env.NODE_DEBUG
1111
? console.warn
12-
// eslint-disable-next-line @typescript-eslint/no-empty-function
1312
: () => {}
1413

1514

scripts/balance/fidor.js

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {prettyPrint} from "../helpers.js"
99
const prompt = inquirer.createPromptModule({ output: process.stderr })
1010
const log = process.env.NODE_DEBUG
1111
? console.warn
12-
// eslint-disable-next-line @typescript-eslint/no-empty-function
1312
: () => {}
1413

1514

scripts/balance/finvesto.js

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {prettyPrint} from "../helpers.js"
99
const prompt = inquirer.createPromptModule({ output: process.stderr })
1010
const log = process.env.NODE_DEBUG
1111
? console.warn
12-
// eslint-disable-next-line @typescript-eslint/no-empty-function
1312
: () => {}
1413

1514

scripts/balance/hypovereinsbank.js

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {prettyPrint} from "../helpers.js"
99
const prompt = inquirer.createPromptModule({ output: process.stderr })
1010
const log = process.env.NODE_DEBUG
1111
? console.warn
12-
// eslint-disable-next-line @typescript-eslint/no-empty-function
1312
: () => {}
1413

1514

scripts/balance/mbs.js

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {prettyPrint} from "../helpers.js"
99
const prompt = inquirer.createPromptModule({ output: process.stderr })
1010
const log = process.env.NODE_DEBUG
1111
? console.warn
12-
// eslint-disable-next-line @typescript-eslint/no-empty-function
1312
: () => {}
1413

1514

scripts/balance/paypal.js

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {prettyPrint} from "../helpers.js"
99
const prompt = inquirer.createPromptModule({ output: process.stderr })
1010
const log = process.env.NODE_DEBUG
1111
? console.warn
12-
// eslint-disable-next-line @typescript-eslint/no-empty-function
1312
: () => {}
1413

1514

scripts/balance/post.js

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {prettyPrint} from "../helpers.js"
66
const prompt = inquirer.createPromptModule({ output: process.stderr })
77
const log = process.env.NODE_DEBUG
88
? console.warn
9-
// eslint-disable-next-line @typescript-eslint/no-empty-function
109
: () => {}
1110

1211

scripts/transactions/dkb-visa.js

-2
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ async function downloadRange (options = {}) {
121121
const endInputSelector = "[tid=toPostingDate]"
122122
const log = process.env.NODE_DEBUG
123123
? console.warn
124-
// eslint-disable-next-line @typescript-eslint/no-empty-function
125124
: () => {}
126125

127126
log(
@@ -170,7 +169,6 @@ async function getTransactions (options = {}) {
170169
const filePathTemp = temporaryFile({name: "dkb-transactions.csv"})
171170
const log = process.env.NODE_DEBUG
172171
? console.warn
173-
// eslint-disable-next-line @typescript-eslint/no-empty-function
174172
: () => {}
175173

176174
const loginUrl = `${baseUrl}/banking`

scripts/transactions/dkb.js

-2
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ async function downloadRange (options = {}) {
117117
const endInputSelector = "[name=toTransactionDate]"
118118
const log = process.env.NODE_DEBUG
119119
? console.warn
120-
// eslint-disable-next-line @typescript-eslint/no-empty-function
121120
: () => {}
122121

123122
log(
@@ -167,7 +166,6 @@ async function getTransactions (options = {}) {
167166
const filePathTemp = temporaryFile({name: "dkb-transactions.csv"})
168167
const log = process.env.NODE_DEBUG
169168
? console.warn
170-
// eslint-disable-next-line @typescript-eslint/no-empty-function
171169
: () => {}
172170

173171
const loginUrl = `${baseUrl}/banking`

scripts/transactions/hypovereinsbank.js

-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ async function downloadRange (options = {}) {
110110
const endInputSelector = "#dayTo_input"
111111
const log = process.env.NODE_DEBUG
112112
? console.warn
113-
// eslint-disable-next-line @typescript-eslint/no-empty-function
114113
: () => {}
115114

116115
log(
@@ -157,7 +156,6 @@ async function getTransactions (options = {}) {
157156
const filePathTemp = temporaryFile({name: "hypovereinsbank-transactions.csv"})
158157
const log = process.env.NODE_DEBUG
159158
? console.warn
160-
// eslint-disable-next-line @typescript-eslint/no-empty-function
161159
: () => {}
162160

163161
const url = `${baseUrl}/login?view=/de/login.jsp`

scripts/transactions/mbs.js

-2
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ async function downloadRange (options = {}) {
108108
const endInputSelector = "#zeitraumKalender input[type=text]:last-of-type"
109109
const log = process.env.NODE_DEBUG
110110
? console.warn
111-
// eslint-disable-next-line @typescript-eslint/no-empty-function
112111
: () => {}
113112

114113
log(
@@ -177,7 +176,6 @@ async function getTransactions (options = {}) {
177176
const filePathTemp = temporaryFile({name: "transactions.csv"})
178177
const log = process.env.NODE_DEBUG
179178
? console.warn
180-
// eslint-disable-next-line @typescript-eslint/no-empty-function
181179
: () => {}
182180

183181
const url = `${baseUrl}/de/home.html`

0 commit comments

Comments
 (0)