Skip to content

Commit 7cb793f

Browse files
author
Adrien Fabre
committed
Add githubComments.js to prettier ignore list because it helds invalid JS before nunjucks handle the file
1 parent 479b20d commit 7cb793f

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.prettierignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
11
src/mirror/**/*
2+
**/*.gif
3+
**/*.png
4+
**/*.jpeg
5+
**/*.pdf
6+
7+
# Have to ignore this one because it is injected in nunjucks templates
8+
# and it uses `setupCommentsInPage({{ commentIssueId }});` which is not valid JS
9+
# but becomes valid once the nunjucks injects the code and replaces `{ commentIssueId }`
10+
src/_includes/scripts/githubComments.js

src/_includes/scripts/githubComments.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,5 +123,5 @@ function setupCommentsInPage(commentIssueId) {
123123
});
124124
}
125125

126-
// prettier-ignore `{ commentIssueId }` is actually nunjucks data once this script is injected in pages
126+
// `{ commentIssueId }` is actually nunjucks data once this script is injected in the pages
127127
setupCommentsInPage({{ commentIssueId }});

0 commit comments

Comments
 (0)