-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #208 from pcardune/05-18-Install_prettier
Use prettier to format code
- Loading branch information
Showing
38 changed files
with
7,017 additions
and
720 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"node": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# ignore a bunch of stuff | ||
coverage | ||
*.handlebars | ||
examples/**/dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
var bookListingTemplate = require("./book-listing.handlebars"); | ||
|
||
document.addEventListener("DOMContentLoaded", function() { | ||
var div = document.createElement('div'); | ||
div.innerHTML = bookListingTemplate({ | ||
username: "test", | ||
info: "Your books are due next Tuesday", | ||
books: [ | ||
{ title: "A book", synopsis: "With a description" }, | ||
{ title: "Another book", synopsis: "From a very good author" }, | ||
{ title: "Book without synopsis" } | ||
] | ||
}); | ||
document.body.appendChild(div); | ||
document.addEventListener("DOMContentLoaded", function () { | ||
var div = document.createElement("div"); | ||
div.innerHTML = bookListingTemplate({ | ||
username: "test", | ||
info: "Your books are due next Tuesday", | ||
books: [ | ||
{ title: "A book", synopsis: "With a description" }, | ||
{ title: "Another book", synopsis: "From a very good author" }, | ||
{ title: "Book without synopsis" }, | ||
], | ||
}); | ||
document.body.appendChild(div); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = function(object) { | ||
module.exports = function (object) { | ||
return JSON.stringify(object); | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = function() { | ||
return this.title.toUpperCase() | ||
}; | ||
module.exports = function () { | ||
return this.title.toUpperCase(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
var template = require("./template.handlebars"); | ||
|
||
document.addEventListener("DOMContentLoaded", function() { | ||
var div = document.createElement('div'); | ||
div.innerHTML = template({ | ||
user: { | ||
name: "jack", | ||
info: [ | ||
{ status: "leaving" } | ||
] | ||
} | ||
}); | ||
document.body.appendChild(div); | ||
}); | ||
document.addEventListener("DOMContentLoaded", function () { | ||
var div = document.createElement("div"); | ||
div.innerHTML = template({ | ||
user: { | ||
name: "jack", | ||
info: [{ status: "leaving" }], | ||
}, | ||
}); | ||
document.body.appendChild(div); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = function (data, options) { | ||
return options.fn( data.info[0] ); | ||
}; | ||
return options.fn(data.info[0]); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
var bookTemplate = require("./book.handlebars"); | ||
|
||
console.log(bookTemplate({ | ||
username: "Alan" | ||
})); | ||
console.log( | ||
bookTemplate({ | ||
username: "Alan", | ||
}) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
var bookListingTemplate = require("./book-listing.handlebars"); | ||
|
||
document.addEventListener("DOMContentLoaded", function() { | ||
var div = document.createElement('div'); | ||
div.innerHTML = bookListingTemplate({ | ||
username: "test", | ||
books: [ | ||
{ title: "A book", synopsis: "With a description" }, | ||
{ title: "Another book", synopsis: "From a very good author" }, | ||
{ title: "Book without synopsis" } | ||
] | ||
}); | ||
document.body.appendChild(div); | ||
}); | ||
document.addEventListener("DOMContentLoaded", function () { | ||
var div = document.createElement("div"); | ||
div.innerHTML = bookListingTemplate({ | ||
username: "test", | ||
books: [ | ||
{ title: "A book", synopsis: "With a description" }, | ||
{ title: "Another book", synopsis: "From a very good author" }, | ||
{ title: "Book without synopsis" }, | ||
], | ||
}); | ||
document.body.appendChild(div); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = function() { | ||
return this.title.toUpperCase(); | ||
}; | ||
module.exports = function () { | ||
return this.title.toUpperCase(); | ||
}; |
Oops, something went wrong.