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