Skip to content

Commit

Permalink
Format helpers.js (#205)
Browse files Browse the repository at this point in the history
* Format helpers.js with prettier

* Adding docs on how to run prettier
  • Loading branch information
whs authored and Craig Peterson committed Sep 15, 2017
1 parent 7c015bd commit 4bffc37
Show file tree
Hide file tree
Showing 5 changed files with 273 additions and 246 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ docs/_site
powershell.log
zones/
*.env
node_modules
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
tabWidth: 4
singleQuote: true
trailingComma: es5
7 changes: 6 additions & 1 deletion docs/adding-new-rtypes.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ is the Javascript file that defines `dnsconfig.js`'s functions like
`A()` and `MX()`. Look at the definition of A, MX and CAA for good
examples to use as a base.

Please add the function alphabetically with the others.
Please add the function alphabetically with the others. Also, please run
[prettier](https://github.com/prettier/prettier) on the file to ensure
your code conforms to our coding standard:

npm install prettier
node_modules/.bin/prettier --write pkg/js/helpers.js

## Step 3: Search for `#rtype_variations`

Expand Down
Loading

0 comments on commit 4bffc37

Please sign in to comment.