Skip to content

Commit 8aef6cd

Browse files
authored
chore: update prettier (lnbits#2405)
update to new prettier version with some new formatting
1 parent adb8f9b commit 8aef6cd

File tree

6 files changed

+18
-13
lines changed

6 files changed

+18
-13
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repos:
2323
- id: ruff
2424
args: [ --fix, --exit-non-zero-on-fix ]
2525
- repo: https://github.com/pre-commit/mirrors-prettier
26-
rev: '50c5478ed9e10bf360335449280cf2a67f4edb7a'
26+
rev: "v4.0.0-alpha.8"
2727
hooks:
2828
- id: prettier
2929
types_or: [css, javascript, html, json]

lnbits/static/js/components.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,8 @@ Vue.component('lnbits-payment-details', {
318318
this.payment.webhook_status < 0
319319
? 'red-10'
320320
: !this.payment.webhook_status
321-
? 'cyan-7'
322-
: 'green-10'
321+
? 'cyan-7'
322+
: 'green-10'
323323
},
324324
webhookStatusText() {
325325
return this.payment.webhook_status

lnbits/templates/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22

33
<html lang="en">
44
<head>

lnbits/templates/print.html

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22

33
<html lang="en">
44
<head>
@@ -14,7 +14,12 @@
1414
size: A4 portrait;
1515
}
1616
body {
17-
font-family: Roboto, -apple-system, Helvetica Neue, Helvetica, Arial,
17+
font-family:
18+
Roboto,
19+
-apple-system,
20+
Helvetica Neue,
21+
Helvetica,
22+
Arial,
1823
sans-serif;
1924
}
2025
</style>

package-lock.json

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"devDependencies": {
1313
"concat": "^1.0.3",
1414
"minify": "^9.2.0",
15-
"prettier": "2.8.3",
15+
"prettier": "^3.2.5",
1616
"pyright": "1.1.289",
1717
"sass": "^1.60.0"
1818
},

0 commit comments

Comments
 (0)