Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
Merge pull request #632 from palantir/sort-keys-doc
Browse files Browse the repository at this point in the history
Add documentation for sort-object-literal-keys rule
  • Loading branch information
adidahiya committed Sep 2, 2015
2 parents fca2a66 + 404cadd commit f1e4aa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ A sample configuration file with all options is available [here](https://github.
* `"double"` enforces double quotes
* `radix` enforces the radix parameter of `parseInt`
* `semicolon` enforces semicolons at the end of every statement.
* `sort-object-literal-keys` checks that keys in object literals are declared in alphabetical order
* `switch-default` enforces a `default` case in `switch` statements.
* `triple-equals` enforces === and !== in favor of == and !=.
* `typedef` enforces type definitions to exist. Rule options:
Expand Down
1 change: 1 addition & 0 deletions docs/sample.tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"quotemark": [true, "double"],
"radix": true,
"semicolon": true,
"sort-object-literal-keys": true,
"switch-default": true,
"triple-equals": [true, "allow-null-check"],
"typedef": [true,
Expand Down

0 comments on commit f1e4aa6

Please sign in to comment.