mirror of
https://github.com/remarkjs/remark-lint.git
synced 2024-09-11 19:57:15 +03:00
Remove boolean fallback for ancient remark
Closes GH-284. Reviewed-by: Titus Wormer <tituswormer@gmail.com>
This commit is contained in:
parent
8e2a554c38
commit
0f6bb40ca4
@ -83,9 +83,7 @@ function coerce(name, value) {
|
||||
/** @type {Array<unknown>} */
|
||||
let result
|
||||
|
||||
if (typeof value === 'boolean') {
|
||||
result = [value]
|
||||
} else if (value === null || value === undefined) {
|
||||
if (value === null || value === undefined) {
|
||||
result = [1]
|
||||
} else if (
|
||||
Array.isArray(value) &&
|
||||
|
Loading…
Reference in New Issue
Block a user