@@ -30,7 +30,7 @@ If you have questions, comments or suggestions, just create an issue on this rep
3030these rules with new insights, experiences and remarks in alignment with the updates on [ TSLint] and [ codelyzer] .
3131
3232** Note** : The following set of rules depend on:
33- - [ TSLint] v5.17 .0
33+ - [ TSLint] v5.18 .0
3434- [ codelyzer] v5.0.0
3535
3636## Table of contents:
@@ -138,7 +138,12 @@ A sample configuration is shown below, where `tslint.json` lives adjacent to you
138138
139139- Member ** overloads** should be ** consecutive** .
140140``` json
141- "adjacent-overload-signatures" : true
141+ "adjacent-overload-signatures" : [
142+ true ,
143+ {
144+ "ignore-accessors" : true ,
145+ }
146+ ]
142147```
143148
144149- * Always prefer* ** unifying any two overloads** into one, by using a ** union** or an ** optional/rest parameter** .
@@ -295,6 +300,11 @@ them is allowed by TypeScript*).
295300"await-promise" : true
296301```
297302
303+ - Functions marked ** ` async ` ** must contain an ** ` await ` ** or ** ` return ` ** statement
304+ ``` json
305+ "no-async-without-await" : true
306+ ```
307+
298308- * Do not use* the ** unnecessary** ** ` return await ` ** .
299309``` json
300310"no-return-await" : true
@@ -517,6 +527,17 @@ them is allowed by TypeScript*).
517527]
518528```
519529
530+ - Using ** comparison operators** (` > ` , ` >= ` , ` <= ` , ` < ` ) to compare * non-numbers* should be ** avoided** .
531+ ``` json
532+ "strict-comparisons" : [
533+ true ,
534+ {
535+ "allow-object-equal-comparison" : true ,
536+ "allow-string-order-comparison" : false
537+ }
538+ ]
539+ ```
540+
520541- * Always prefer* explicit ** ` += 1 ` ** and ** ` -= 1 ` ** * pre-unary* ** operators** over ** ` ++i ` ** and ** ` --i ` ** .
521542``` json
522543"increment-decrement" : [
0 commit comments