Skip to content

Commit 3613cac

Browse files
committed
Add Prettier for code formatting and configure ignore comments for specific blocks
1 parent 9232a69 commit 3613cac

File tree

19 files changed

+777
-52
lines changed

19 files changed

+777
-52
lines changed

.eleventy.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
module.exports = function(eleventyConfig) {
1+
module.exports = function (eleventyConfig) {
22
// Copy the assets folder to the output
3-
eleventyConfig.addPassthroughCopy("src/assets");
3+
eleventyConfig.addPassthroughCopy('src/assets');
44

55
return {
66
dir: {
7-
input: "src",
8-
includes: "_includes",
9-
output: "_site"
7+
input: 'src',
8+
includes: '_includes',
9+
output: '_site',
1010
},
11-
pathPrefix: "/"
11+
pathPrefix: '/',
1212
};
13-
};
13+
};

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
uses: peaceiris/actions-gh-pages@v3
2929
with:
3030
github_token: ${{ secrets.GITHUB_TOKEN }}
31-
publish_dir: ./_site
31+
publish_dir: ./_site

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
_site/

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"trailingComma": "es5",
5+
"printWidth": 80
6+
}

0 commit comments

Comments
 (0)