all: add a section on JS/CSS formatting to README

Updates golang/go#21719

Change-Id: Ie33b439c929c466089398c4f24dc243239c48f10
Run-TryBot: Agniva De Sarker <>
TryBot-Result: Gobot Gobot <>
Reviewed-by: Andrew Bonventre <>
diff --git a/.prettierrc b/.prettierrc
new file mode 100644
index 0000000..1502887
--- /dev/null
+++ b/.prettierrc
@@ -0,0 +1,4 @@
+  "singleQuote": true,
+  "trailingComma": "es5"
\ No newline at end of file
diff --git a/ b/
index 160c2aa..3cfe1a4 100644
--- a/
+++ b/
@@ -7,6 +7,15 @@
 The easiest way to install is to run `go get -u`. You can
 also manually git clone the repository to `$GOPATH/src/`.
+## JS/CSS Formatting
+This repository uses [prettier]( to format JS and CSS files.
+The version of `prettier` used is 1.18.2.
+It is encouraged that all JS and CSS code be run through this before submitting
+a change. However, it is not a strict requirement enforced by CI.
 ## Report Issues / Send Patches
 This repository uses Gerrit for code changes. To learn how to submit changes to