summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2018-09-21 13:54:49 -0500
committerPatrick Venture <venture@google.com>2018-09-24 10:49:02 -0700
commitcf8b012c0e8124781bfe88f6e864b6b93c3991f4 (patch)
treeff6af3aecd99512e1ed49020cc0be45a26340a25
parent4f7b4b6dc4ad6e0ffb9d354288eb2f60f0bd6863 (diff)
downloadopenbmc-docs-cf8b012c0e8124781bfe88f6e864b6b93c3991f4.tar.gz
openbmc-docs-cf8b012c0e8124781bfe88f6e864b6b93c3991f4.zip
CONTRIBUTING.md: Add JavaScript .clang-format file
Added a new JavaScript section to the "Coding style" section. Change-Id: Ic992efa98500c421504da602fbc96f18e608a074 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
-rw-r--r--CONTRIBUTING.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 0ec880d..f59fe9f 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -83,6 +83,16 @@ rules. These rules can be enforced by adding the following to the setup.cfg:
ignore= NONE
```
+### JavaScript
+
+A .clang-format file that closely approximates our JavaScript coding style is:
+```
+---
+Language: JavaScript
+BasedOnStyle: Google
+ColumnLimit: 80
+```
+
### C
For C code, we typically use the Linux coding style, which is documented at:
OpenPOWER on IntegriCloud