Skip to content

Commit 0f6bb40

Browse files
authoredMar 30, 2022
Remove boolean fallback for ancient remark
Closes GH-284. Reviewed-by: Titus Wormer <tituswormer@gmail.com>
1 parent 8e2a554 commit 0f6bb40

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎packages/unified-lint-rule/lib/index.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ function coerce(name, value) {
8383
/** @type {Array<unknown>} */
8484
let result
8585

86-
if (typeof value === 'boolean') {
87-
result = [value]
88-
} else if (value === null || value === undefined) {
86+
if (value === null || value === undefined) {
8987
result = [1]
9088
} else if (
9189
Array.isArray(value) &&

0 commit comments

Comments
 (0)
Please sign in to comment.