From 404cadd82457d62c5d922b8fdb39f41b9a49ff80 Mon Sep 17 00:00:00 2001 From: Jason Killian Date: Wed, 2 Sep 2015 16:35:29 -0400 Subject: [PATCH] Add documentation for sort-object-literal-keys rule --- README.md | 1 + docs/sample.tslint.json | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index ec56ea63e30..4e6379a36b9 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/docs/sample.tslint.json b/docs/sample.tslint.json index 0d3f210563e..5fe480a3d2d 100644 --- a/docs/sample.tslint.json +++ b/docs/sample.tslint.json @@ -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,