From 65d5228f00eb894317b225a1799bf814b82ef651 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Wed, 26 Jun 2019 14:28:00 +0530 Subject: [PATCH] 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 TryBot-Result: Gobot Gobot Reviewed-by: Andrew Bonventre --- .prettierrc | 4 ++++ README.md | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 00000000000..1502887d63f --- /dev/null +++ b/.prettierrc @@ -0,0 +1,4 @@ +{ + "singleQuote": true, + "trailingComma": "es5" +} \ No newline at end of file diff --git a/README.md b/README.md index 20be9e1abd6..8e7f9411799 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,15 @@ Static Single Assignment form (SSA) representation for Go programs. The easiest way to install is to run `go get -u golang.org/x/tools/...`. You can also manually git clone the repository to `$GOPATH/src/golang.org/x/tools`. +## JS/CSS Formatting + +This repository uses [prettier](https://prettier.io/) 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