From 3891f3d3d20db0eb5eda24a86f11b6fa4ef60d1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Here=C3=B1=C3=BA?= Date: Wed, 4 Oct 2017 05:34:27 -0300 Subject: [PATCH] Minor fixes (#4806) --- CodingConvention.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CodingConvention.md b/CodingConvention.md index c9c403626..80f1e0127 100644 --- a/CodingConvention.md +++ b/CodingConvention.md @@ -3,7 +3,7 @@ ## Linting We use [TSLint](https://palantir.github.io/tslint/) for linting. Rules are defined in `build/tslint.json`. -Run the tslint form the root of the repo with: +Run the tslint from the root of the repo with: ```bash npm run tslint @@ -138,7 +138,7 @@ let adminUser = db.query("SELECT * FROM users ..."); let admin_user = db.query("SELECT * FROM users ..."); ``` -[camelcase]: http://en.wikipedia.org/wiki/camelCase#Variations_and_synonyms +[camelcase]: https://en.wikipedia.org/wiki/camelCase#Variations_and_synonyms ## Type names @@ -231,6 +231,7 @@ if (a == "") { ## Short-hand operators Try to avoid short-hand operators except in very simple scenarios. + *Right:* ```TypeScript @@ -272,7 +273,7 @@ if (a) return "winning"; ## Boolean comparisons -**Do not** directly compare with `true`, or `false`. +**Do not** directly compare with `true` or `false`. *Right:*