Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit ee7577d

Browse files
cookch10markelog
authored andcommitted
Docs: various rule corrections
* disallowNestedTernaries: fixes incorrect option type * disallowSpaceAfterObjectKeys: adds missing option type Fixes #2092 Closes gh-2115
1 parent 488ec0d commit ee7577d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/rules/disallow-nested-ternaries.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/**
22
* Disallows nested ternaries.
33
*
4-
* Types: `Boolean`, `Integer`
4+
* Types: `Boolean`, `Object`
55
*
6-
* Values: `true` or an Integer that describes the maximum levels of nesting to be allowed.
6+
* Values: `true` or an Object that contains a `maxLevel` property equal to an integer indicating the maximum levels of nesting to be allowed.
77
*
88
* #### Examples
99
*

lib/rules/disallow-space-after-object-keys.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Disallows space after object keys.
33
*
4-
* Types: `Boolean` or `String`
4+
* Types: `Boolean`, `String`, or `Object`
55
*
66
* Values:
77
* - `true`

0 commit comments

Comments
 (0)