Skip to content

Commit 65d5228

Browse files
committed
all: add a section on JS/CSS formatting to README
Updates golang/go#21719 Change-Id: I3709577f48bcbff26beb6f5b8ff8d06fb18cc619 Reviewed-on: https://go-review.googlesource.com/c/tools/+/183877 Run-TryBot: Agniva De Sarker <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Andrew Bonventre <[email protected]>
1 parent 8e7acdb commit 65d5228

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.prettierrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "es5"
4+
}

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ Static Single Assignment form (SSA) representation for Go programs.
1717
The easiest way to install is to run `go get -u golang.org/x/tools/...`. You can
1818
also manually git clone the repository to `$GOPATH/src/golang.org/x/tools`.
1919

20+
## JS/CSS Formatting
21+
22+
This repository uses [prettier](https://prettier.io/) to format JS and CSS files.
23+
24+
The version of `prettier` used is 1.18.2.
25+
26+
It is encouraged that all JS and CSS code be run through this before submitting
27+
a change. However, it is not a strict requirement enforced by CI.
28+
2029
## Report Issues / Send Patches
2130

2231
This repository uses Gerrit for code changes. To learn how to submit changes to

0 commit comments

Comments
 (0)