diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 00000000..1502887d --- /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 160c2aa7..3cfe1a44 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,15 @@ This repository holds the Go Website server code and content. The easiest way to install is to run `go get -u golang.org/x/website`. You can also manually git clone the repository to `$GOPATH/src/golang.org/x/website`. +## 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