Skip to content

Commit d27ada7

Browse files
committed
Use a more standard generated comment format
1 parent fe5fd6a commit d27ada7

File tree

5 files changed

+12
-18
lines changed

5 files changed

+12
-18
lines changed

.prettierignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#
2-
# Generated from [.gitignore .prettierignore.include] by Makefile; DO NOT EDIT.
3-
#
1+
# Code generated by Makefile (.gitignore .prettierignore.include). DO NOT EDIT.
2+
43
# .gitignore:
54
# Common ignore patterns, these rules applies in both root and subdirectories.
65
.DS_Store

Makefile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -499,9 +499,8 @@ cli/testdata/.gen-golden: $(wildcard cli/testdata/*.golden) $(GO_SRC_FILES)
499499
# overrides. This allows us to share the same prettier config between the
500500
# site and the root of the repo.
501501
site/.prettierrc.yaml: .prettierrc.yaml Makefile
502-
echo "#" > "$@"
503-
echo "# Generated from ../$< by Makefile; DO NOT EDIT." >> "$@"
504-
echo "#" >> "$@"
502+
echo "# Code generated by Makefile (../$<). DO NOT EDIT." > "$@"
503+
echo "" >> "$@"
505504

506505
# Simplistic approach to rewriting override paths relative to site/.
507506
isfile=0
@@ -535,9 +534,8 @@ site/.prettierrc.yaml: .prettierrc.yaml Makefile
535534

536535
# Combine .gitignore with .prettierignore.include to generate .prettierignore.
537536
.prettierignore: .gitignore .prettierignore.include
538-
echo "#" > "$@"
539-
echo "# Generated from [$^] by Makefile; DO NOT EDIT." >> "$@"
540-
echo "#" >> "$@"
537+
echo "# Code generated by Makefile ($^). DO NOT EDIT." > "$@"
538+
echo "" >> "$@"
541539
for f in $^; do
542540
echo "# $${f}:" >> "$@"
543541
cat "$$f" >> "$@"

site/.eslintignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#
2-
# Generated from [.gitignore .prettierignore.include] by Makefile; DO NOT EDIT.
3-
#
1+
# Code generated by Makefile (.gitignore .prettierignore.include). DO NOT EDIT.
2+
43
# .gitignore:
54
# Common ignore patterns, these rules applies in both root and subdirectories.
65
.DS_Store

site/.prettierignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#
2-
# Generated from [.gitignore .prettierignore.include] by Makefile; DO NOT EDIT.
3-
#
1+
# Code generated by Makefile (.gitignore .prettierignore.include). DO NOT EDIT.
2+
43
# .gitignore:
54
# Common ignore patterns, these rules applies in both root and subdirectories.
65
.DS_Store

site/.prettierrc.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#
2-
# Generated from ../.prettierrc.yaml by Makefile; DO NOT EDIT.
3-
#
1+
# Code generated by Makefile (../.prettierrc.yaml). DO NOT EDIT.
2+
43
# This config file is used in conjunction with `.editorconfig` to specify
54
# formatting for prettier-supported files. See `.editorconfig` and
65
# `site/.editorconfig`for whitespace formatting options.

0 commit comments

Comments
 (0)