Skip to content

Commit

Permalink
Remove boolean fallback for ancient remark
Browse files Browse the repository at this point in the history
Closes GH-284.

Reviewed-by: Titus Wormer <[email protected]>
  • Loading branch information
jablko authored Mar 30, 2022
1 parent 8e2a554 commit 0f6bb40
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/unified-lint-rule/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) &&
Expand Down

0 comments on commit 0f6bb40

Please sign in to comment.