Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4730500

Browse files
author
fiatjaf
committed
apply prettier to everything.
1 parent 083f7a0 commit 4730500

33 files changed

Lines changed: 5068 additions & 3951 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ venv
2727
.pyre*
2828

2929
__bundle__
30+
31+
node_modules

.prettierrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"semi": false,
3+
"arrowParens": "avoid",
4+
"insertPragma": false,
5+
"printWidth": 80,
6+
"proseWrap": "preserve",
7+
"singleQuote": true,
8+
"trailingComma": "none",
9+
"useTabs": false,
10+
"jsxBracketSameLine": false,
11+
"bracketSpacing": false
12+
}

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
prettier:
2+
./node_modules/.bin/prettier --write lnbits/static/js/** lnbits/core/static/js/** lnbits/extensions/*/templates/**
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
new Vue({
22
el: '#vue',
33
mixins: [windowMixin]
4-
});
4+
})

lnbits/core/static/js/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ new Vue({
33
mixins: [windowMixin],
44
data: function () {
55
return {
6-
disclaimerDialog: {
6+
disclaimerDialog: {
77
show: false,
88
data: {}
9-
},
9+
},
1010
walletName: ''
11-
};
11+
}
1212
},
1313
methods: {
1414
createWallet: function () {
15-
LNbits.href.createWallet(this.walletName);
15+
LNbits.href.createWallet(this.walletName)
1616
},
1717
processing: function () {
1818
this.$q.notify({
1919
timeout: 0,
2020
message: 'Processing...',
2121
icon: null
22-
});
22+
})
2323
}
2424
}
25-
});
25+
})

0 commit comments

Comments
 (0)