Skip to content

Commit

Permalink
add .prettierrc matching eslint/prettier settings
Browse files Browse the repository at this point in the history
  • Loading branch information
dlajarretie committed Dec 20, 2019
1 parent 3b93141 commit cbca4a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"trailingComma": "es5",
"singleQuote": true
}
4 changes: 2 additions & 2 deletions src/components/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function download(filename, text) {
var element = document.createElement('a');
element.setAttribute(
'href',
`data:application/json;charset=utf-8,${encodeURIComponent(text)}`,
`data:application/json;charset=utf-8,${encodeURIComponent(text)}`
);
element.setAttribute('download', filename);

Expand Down Expand Up @@ -49,7 +49,7 @@ function exportDb() {
secretin.exportDb().then(db => {
download(
`Secret-in_${secretin.currentUser.username}_${moment().format()}.json`,
db,
db
);
});
}
Expand Down

0 comments on commit cbca4a8

Please sign in to comment.