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

Commit 0a921e9

Browse files
dharknesshzoo
authored andcommitted
disallowQuotedKeysInObjects: fix Types and Values documentation
- Added Object to the list of Types Should String be removed since it's deprecated? - Fixed Values list formatting Was creating an extra indentation level Closes gh-2053
1 parent afacf5c commit 0a921e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/rules/disallow-quoted-keys-in-objects.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
/**
22
* Disallows quoted keys in object if possible.
33
*
4-
* Types: `String` or `Boolean`
4+
* Types: `Boolean`, `String` or `Object`
55
*
66
* Values:
77
*
88
* - `true` for strict mode
99
* - `"allButReserved"` (*deprecated* use `"allExcept": ["reserved"]`)
10-
* - `Object`:
10+
* - `Object`:
1111
* - `"allExcept"` array of exceptions:
12-
* - `"reserved"` allows ES3+ reserved words to remain quoted
12+
* - `"reserved"` allows ES3+ reserved words to remain quoted
1313
* which is helpful when using this option with JSHint's `es3` flag.
1414
*
1515
* #### Example

0 commit comments

Comments
 (0)