Skip to content

Commit

Permalink
Upgrade to ESLint 9
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-si committed Jun 3, 2024
1 parent 0eea6f5 commit 4d64340
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 20 deletions.
5 changes: 5 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import eslintConfJs from "eslint-config-javascript"

export default [
...eslintConfJs,
]
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
1 change: 0 additions & 1 deletion scripts/balance/aws.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
: () => {}


Expand Down
1 change: 0 additions & 1 deletion scripts/balance/dkb.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
: () => {}


Expand Down
1 change: 0 additions & 1 deletion scripts/balance/fidor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
: () => {}


Expand Down
1 change: 0 additions & 1 deletion scripts/balance/finvesto.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
: () => {}


Expand Down
1 change: 0 additions & 1 deletion scripts/balance/hypovereinsbank.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
: () => {}


Expand Down
1 change: 0 additions & 1 deletion scripts/balance/mbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
: () => {}


Expand Down
1 change: 0 additions & 1 deletion scripts/balance/paypal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
: () => {}


Expand Down
1 change: 0 additions & 1 deletion scripts/balance/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
: () => {}


Expand Down
2 changes: 0 additions & 2 deletions scripts/transactions/dkb-visa.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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`
Expand Down
2 changes: 0 additions & 2 deletions scripts/transactions/dkb.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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`
Expand Down
2 changes: 0 additions & 2 deletions scripts/transactions/hypovereinsbank.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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`
Expand Down
2 changes: 0 additions & 2 deletions scripts/transactions/mbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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`
Expand Down

0 comments on commit 4d64340

Please sign in to comment.