Skip to content

Commit

Permalink
fix(rules): false is invalid as a primary option
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary G authored and Mouvedia committed Aug 10, 2022
1 parent 3b1f9a9 commit 84c552d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/__tests__/fixtures/plugin-async.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const ruleName = 'plugin/async';
const rule = (enabled) => (root, result) => {
const validOptions = stylelint.utils.validateOptions(result, ruleName, {
actual: enabled,
possible: [true, false],
possible: [true],
});

if (!validOptions) {
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/selector-no-qualifying-type/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const rule = (primary, secondaryOptions) => {
ruleName,
{
actual: primary,
possible: [true, false],
possible: [true],
},
{
actual: secondaryOptions,
Expand Down

0 comments on commit 84c552d

Please sign in to comment.