diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d9950932e..21f30397b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,7 @@ repos: - id: ruff args: [ --fix, --exit-non-zero-on-fix ] - repo: https://github.com/pre-commit/mirrors-prettier - rev: '50c5478ed9e10bf360335449280cf2a67f4edb7a' + rev: "v4.0.0-alpha.8" hooks: - id: prettier types_or: [css, javascript, html, json] diff --git a/lnbits/static/js/components.js b/lnbits/static/js/components.js index dfaeecbb1..2f837eb9b 100644 --- a/lnbits/static/js/components.js +++ b/lnbits/static/js/components.js @@ -318,8 +318,8 @@ Vue.component('lnbits-payment-details', { this.payment.webhook_status < 0 ? 'red-10' : !this.payment.webhook_status - ? 'cyan-7' - : 'green-10' + ? 'cyan-7' + : 'green-10' }, webhookStatusText() { return this.payment.webhook_status diff --git a/lnbits/templates/base.html b/lnbits/templates/base.html index 7d14c5f79..784897077 100644 --- a/lnbits/templates/base.html +++ b/lnbits/templates/base.html @@ -1,4 +1,4 @@ - + diff --git a/lnbits/templates/print.html b/lnbits/templates/print.html index dbed57402..82ee27691 100644 --- a/lnbits/templates/print.html +++ b/lnbits/templates/print.html @@ -1,4 +1,4 @@ - + @@ -14,7 +14,12 @@ size: A4 portrait; } body { - font-family: Roboto, -apple-system, Helvetica Neue, Helvetica, Arial, + font-family: + Roboto, + -apple-system, + Helvetica Neue, + Helvetica, + Arial, sans-serif; } diff --git a/package-lock.json b/package-lock.json index 33cd31162..66dc001ac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,7 @@ "devDependencies": { "concat": "^1.0.3", "minify": "^9.2.0", - "prettier": "2.8.3", + "prettier": "^3.2.5", "pyright": "1.1.289", "sass": "^1.60.0" } @@ -863,15 +863,15 @@ } }, "node_modules/prettier": { - "version": "2.8.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.3.tgz", - "integrity": "sha512-tJ/oJ4amDihPoufT5sM0Z1SKEuKay8LfVAMlbbhnnkvt6BUserZylqo2PN+p9KeljLr0OHa2rXHU1T8reeoTrw==", + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", + "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==", "dev": true, "bin": { - "prettier": "bin-prettier.js" + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=10.13.0" + "node": ">=14" }, "funding": { "url": "https://github.com/prettier/prettier?sponsor=1" diff --git a/package.json b/package.json index dec351fcf..b8b079cf5 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "devDependencies": { "concat": "^1.0.3", "minify": "^9.2.0", - "prettier": "2.8.3", + "prettier": "^3.2.5", "pyright": "1.1.289", "sass": "^1.60.0" },