Repository navigation
Fix quiet option to suppress report* warning reports - #9387
Conversation
🦋 Changeset detectedLatest commit: 90e370e The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
2bb2b73 to
90e370e
Compare
|
@ychampion Thank you for your contribution. However, this pull request does not appear to follow our contributing guide. Please review it and update your pull request. This pull request will automatically close if there is no activity within 2 days. |
|
I missed the required question format in the PR body. Updated it now with the linked issue, explanation, and validation. I’ll avoid force-pushing further. |
|
This PR is packaged and the instant preview is available (90e370e). View the demo website. Install it locally: npm i -D https://pkg.pr.new/stylelint@90e370e |
|
@ychampion Thanks for fixing the bug. LGTM, but the CI failures are out of scope. Please wait for another PR to fix the CI. |
|
Thanks. The failures look unrelated to this change: the Node 20 jobs are failing while installing npm@latest after npm 12 raised its engine requirement. I’ll leave those alone. |
d793416 to
90e370e
Compare
|
Removed d793416 from this PR. The branch is back to just the scoped quiet-option fix; thanks for splitting the CI fix out. |
| datasource | package | from | to | | ---------- | --------- | ------- | ------- | | npm | stylelint | 17.14.0 | 17.14.1 | ## [v17.14.1](https://github.com/stylelint/stylelint/blob/HEAD/CHANGELOG.md#17141---2026-07-20) - Fixed: `declaration-block-no-redundant-longhand-properties` autofix producing invalid `background` shorthand when `background-size` is present ([#9364](stylelint/stylelint#9364)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: `quiet` option suppresses `report*` warning reports. ([#9387](stylelint/stylelint#9387)) ([@ychampion](https://github.com/ychampion)). - Fixed: `rule-empty-line-before` false positives for shared-line comments with `except: ["after-single-line-comment"]` ([#9394](stylelint/stylelint#9394)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: reported range of unknown rules ([#9385](stylelint/stylelint#9385)) ([@ybiquitous](https://github.com/ybiquitous)).
| datasource | package | from | to | | ---------- | --------- | ------- | ------- | | npm | stylelint | 17.14.0 | 17.14.1 | ## [v17.14.1](https://github.com/stylelint/stylelint/blob/HEAD/CHANGELOG.md#17141---2026-07-20) - Fixed: `declaration-block-no-redundant-longhand-properties` autofix producing invalid `background` shorthand when `background-size` is present ([#9364](stylelint/stylelint#9364)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: `quiet` option suppresses `report*` warning reports. ([#9387](stylelint/stylelint#9387)) ([@ychampion](https://github.com/ychampion)). - Fixed: `rule-empty-line-before` false positives for shared-line comments with `except: ["after-single-line-comment"]` ([#9394](stylelint/stylelint#9394)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: reported range of unknown rules ([#9385](stylelint/stylelint#9385)) ([@ybiquitous](https://github.com/ybiquitous)).
| datasource | package | from | to | | ---------- | --------- | ------- | ------- | | npm | stylelint | 17.14.0 | 17.14.1 | ## [v17.14.1](https://github.com/stylelint/stylelint/blob/HEAD/CHANGELOG.md#17141---2026-07-20) - Fixed: `declaration-block-no-redundant-longhand-properties` autofix producing invalid `background` shorthand when `background-size` is present ([#9364](stylelint/stylelint#9364)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: `quiet` option suppresses `report*` warning reports. ([#9387](stylelint/stylelint#9387)) ([@ychampion](https://github.com/ychampion)). - Fixed: `rule-empty-line-before` false positives for shared-line comments with `except: ["after-single-line-comment"]` ([#9394](stylelint/stylelint#9394)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: reported range of unknown rules ([#9385](stylelint/stylelint#9385)) ([@ybiquitous](https://github.com/ybiquitous)).
| datasource | package | from | to | | ---------- | --------- | ------- | ------- | | npm | stylelint | 17.14.0 | 17.14.1 | ## [v17.14.1](https://github.com/stylelint/stylelint/blob/HEAD/CHANGELOG.md#17141---2026-07-20) - Fixed: `declaration-block-no-redundant-longhand-properties` autofix producing invalid `background` shorthand when `background-size` is present ([#9364](stylelint/stylelint#9364)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: `quiet` option suppresses `report*` warning reports. ([#9387](stylelint/stylelint#9387)) ([@ychampion](https://github.com/ychampion)). - Fixed: `rule-empty-line-before` false positives for shared-line comments with `except: ["after-single-line-comment"]` ([#9394](stylelint/stylelint#9394)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: reported range of unknown rules ([#9385](stylelint/stylelint#9385)) ([@ybiquitous](https://github.com/ybiquitous)).
| datasource | package | from | to | | ---------- | --------- | ------- | ------- | | npm | stylelint | 17.14.0 | 17.14.1 | ## [v17.14.1](https://github.com/stylelint/stylelint/blob/HEAD/CHANGELOG.md#17141---2026-07-20) - Fixed: `declaration-block-no-redundant-longhand-properties` autofix producing invalid `background` shorthand when `background-size` is present ([#9364](stylelint/stylelint#9364)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: `quiet` option suppresses `report*` warning reports. ([#9387](stylelint/stylelint#9387)) ([@ychampion](https://github.com/ychampion)). - Fixed: `rule-empty-line-before` false positives for shared-line comments with `except: ["after-single-line-comment"]` ([#9394](stylelint/stylelint#9394)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: reported range of unknown rules ([#9385](stylelint/stylelint#9385)) ([@ybiquitous](https://github.com/ybiquitous)).
| datasource | package | from | to | | ---------- | --------- | ------- | ------- | | npm | stylelint | 17.14.0 | 17.14.1 | ## [v17.14.1](https://github.com/stylelint/stylelint/blob/HEAD/CHANGELOG.md#17141---2026-07-20) - Fixed: `declaration-block-no-redundant-longhand-properties` autofix producing invalid `background` shorthand when `background-size` is present ([#9364](stylelint/stylelint#9364)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: `quiet` option suppresses `report*` warning reports. ([#9387](stylelint/stylelint#9387)) ([@ychampion](https://github.com/ychampion)). - Fixed: `rule-empty-line-before` false positives for shared-line comments with `except: ["after-single-line-comment"]` ([#9394](stylelint/stylelint#9394)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: reported range of unknown rules ([#9385](stylelint/stylelint#9385)) ([@ybiquitous](https://github.com/ybiquitous)).
| datasource | package | from | to | | ---------- | --------- | ------- | ------- | | npm | stylelint | 17.14.0 | 17.14.1 | ## [v17.14.1](https://github.com/stylelint/stylelint/blob/HEAD/CHANGELOG.md#17141---2026-07-20) - Fixed: `declaration-block-no-redundant-longhand-properties` autofix producing invalid `background` shorthand when `background-size` is present ([#9364](stylelint/stylelint#9364)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: `quiet` option suppresses `report*` warning reports. ([#9387](stylelint/stylelint#9387)) ([@ychampion](https://github.com/ychampion)). - Fixed: `rule-empty-line-before` false positives for shared-line comments with `except: ["after-single-line-comment"]` ([#9394](stylelint/stylelint#9394)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: reported range of unknown rules ([#9385](stylelint/stylelint#9385)) ([@ybiquitous](https://github.com/ybiquitous)).
| datasource | package | from | to | | ---------- | --------- | ------- | ------- | | npm | stylelint | 17.14.0 | 17.14.1 | ## [v17.14.1](https://github.com/stylelint/stylelint/blob/HEAD/CHANGELOG.md#17141---2026-07-20) - Fixed: `declaration-block-no-redundant-longhand-properties` autofix producing invalid `background` shorthand when `background-size` is present ([#9364](stylelint/stylelint#9364)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: `quiet` option suppresses `report*` warning reports. ([#9387](stylelint/stylelint#9387)) ([@ychampion](https://github.com/ychampion)). - Fixed: `rule-empty-line-before` false positives for shared-line comments with `except: ["after-single-line-comment"]` ([#9394](stylelint/stylelint#9394)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: reported range of unknown rules ([#9385](stylelint/stylelint#9385)) ([@ybiquitous](https://github.com/ybiquitous)).
| datasource | package | from | to | | ---------- | --------- | ------- | ------- | | npm | stylelint | 17.14.0 | 17.14.1 | ## [v17.14.1](https://github.com/stylelint/stylelint/blob/HEAD/CHANGELOG.md#17141---2026-07-20) - Fixed: `declaration-block-no-redundant-longhand-properties` autofix producing invalid `background` shorthand when `background-size` is present ([#9364](stylelint/stylelint#9364)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: `quiet` option suppresses `report*` warning reports. ([#9387](stylelint/stylelint#9387)) ([@ychampion](https://github.com/ychampion)). - Fixed: `rule-empty-line-before` false positives for shared-line comments with `except: ["after-single-line-comment"]` ([#9394](stylelint/stylelint#9394)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: reported range of unknown rules ([#9385](stylelint/stylelint#9385)) ([@ybiquitous](https://github.com/ybiquitous)).
| datasource | package | from | to | | ---------- | --------- | ------- | ------- | | npm | stylelint | 17.14.0 | 17.14.1 | ## [v17.14.1](https://github.com/stylelint/stylelint/blob/HEAD/CHANGELOG.md#17141---2026-07-20) - Fixed: `declaration-block-no-redundant-longhand-properties` autofix producing invalid `background` shorthand when `background-size` is present ([#9364](stylelint/stylelint#9364)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: `quiet` option suppresses `report*` warning reports. ([#9387](stylelint/stylelint#9387)) ([@ychampion](https://github.com/ychampion)). - Fixed: `rule-empty-line-before` false positives for shared-line comments with `except: ["after-single-line-comment"]` ([#9394](stylelint/stylelint#9394)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: reported range of unknown rules ([#9385](stylelint/stylelint#9385)) ([@ybiquitous](https://github.com/ybiquitous)).
| datasource | package | from | to | | ---------- | --------- | ------- | ------- | | npm | stylelint | 17.14.0 | 17.14.1 | ## [v17.14.1](https://github.com/stylelint/stylelint/blob/HEAD/CHANGELOG.md#17141---2026-07-20) - Fixed: `declaration-block-no-redundant-longhand-properties` autofix producing invalid `background` shorthand when `background-size` is present ([#9364](stylelint/stylelint#9364)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: `quiet` option suppresses `report*` warning reports. ([#9387](stylelint/stylelint#9387)) ([@ychampion](https://github.com/ychampion)). - Fixed: `rule-empty-line-before` false positives for shared-line comments with `except: ["after-single-line-comment"]` ([#9394](stylelint/stylelint#9394)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: reported range of unknown rules ([#9385](stylelint/stylelint#9385)) ([@ybiquitous](https://github.com/ybiquitous)).
| datasource | package | from | to | | ---------- | --------- | ------- | ------- | | npm | stylelint | 17.14.0 | 17.15.0 | ## [v17.15.0](https://github.com/stylelint/stylelint/blob/HEAD/CHANGELOG.md#17150---2026-09-04) It adds 1 new rule and 2 new rule options, and fixes 4 bugs. - Added: `selector-no-unmatchable` rule ([#9451](stylelint/stylelint#9451)) ([@jeddy3](https://github.com/jeddy3)). - Added: `ignoreFunctions: []` to `color-named` and `color-no-hex` ([#9463](stylelint/stylelint#9463)) ([@jsmitty12](https://github.com/jsmitty12)). - Fixed: `custom-property-no-missing-var-function` false positives for anchor positioning ([#9466](stylelint/stylelint#9466)) ([@giaBaoJS](https://github.com/giaBaoJS)). - Fixed: `declaration-block-no-redundant-longhand-properties` autofix for `font` shorthand ([#9402](stylelint/stylelint#9402)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: `declaration-property-max-values` false positives for interpolated inline expressions ([#9437](stylelint/stylelint#9437)) ([@alexchen-sys](https://github.com/alexchen-sys)). - Fixed: `selector-no-invalid` false negatives for pseudo-elements, combinators and nested `:has()` ([#9452](stylelint/stylelint#9452)) ([@jeddy3](https://github.com/jeddy3)). ## [v17.14.1](https://github.com/stylelint/stylelint/blob/HEAD/CHANGELOG.md#17141---2026-07-20) - Fixed: `declaration-block-no-redundant-longhand-properties` autofix producing invalid `background` shorthand when `background-size` is present ([#9364](stylelint/stylelint#9364)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: `quiet` option suppresses `report*` warning reports. ([#9387](stylelint/stylelint#9387)) ([@ychampion](https://github.com/ychampion)). - Fixed: `rule-empty-line-before` false positives for shared-line comments with `except: ["after-single-line-comment"]` ([#9394](stylelint/stylelint#9394)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: reported range of unknown rules ([#9385](stylelint/stylelint#9385)) ([@ybiquitous](https://github.com/ybiquitous)).
| datasource | package | from | to | | ---------- | --------- | ------- | ------- | | npm | stylelint | 17.14.0 | 17.15.0 | ## [v17.15.0](https://github.com/stylelint/stylelint/blob/HEAD/CHANGELOG.md#17150---2026-09-04) It adds 1 new rule and 2 new rule options, and fixes 4 bugs. - Added: `selector-no-unmatchable` rule ([#9451](stylelint/stylelint#9451)) ([@jeddy3](https://github.com/jeddy3)). - Added: `ignoreFunctions: []` to `color-named` and `color-no-hex` ([#9463](stylelint/stylelint#9463)) ([@jsmitty12](https://github.com/jsmitty12)). - Fixed: `custom-property-no-missing-var-function` false positives for anchor positioning ([#9466](stylelint/stylelint#9466)) ([@giaBaoJS](https://github.com/giaBaoJS)). - Fixed: `declaration-block-no-redundant-longhand-properties` autofix for `font` shorthand ([#9402](stylelint/stylelint#9402)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: `declaration-property-max-values` false positives for interpolated inline expressions ([#9437](stylelint/stylelint#9437)) ([@alexchen-sys](https://github.com/alexchen-sys)). - Fixed: `selector-no-invalid` false negatives for pseudo-elements, combinators and nested `:has()` ([#9452](stylelint/stylelint#9452)) ([@jeddy3](https://github.com/jeddy3)). ## [v17.14.1](https://github.com/stylelint/stylelint/blob/HEAD/CHANGELOG.md#17141---2026-07-20) - Fixed: `declaration-block-no-redundant-longhand-properties` autofix producing invalid `background` shorthand when `background-size` is present ([#9364](stylelint/stylelint#9364)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: `quiet` option suppresses `report*` warning reports. ([#9387](stylelint/stylelint#9387)) ([@ychampion](https://github.com/ychampion)). - Fixed: `rule-empty-line-before` false positives for shared-line comments with `except: ["after-single-line-comment"]` ([#9394](stylelint/stylelint#9394)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: reported range of unknown rules ([#9385](stylelint/stylelint#9385)) ([@ybiquitous](https://github.com/ybiquitous)).
| datasource | package | from | to | | ---------- | --------- | ------- | ------- | | npm | stylelint | 17.14.0 | 17.15.0 | ## [v17.15.0](https://github.com/stylelint/stylelint/blob/HEAD/CHANGELOG.md#17150---2026-09-04) It adds 1 new rule and 2 new rule options, and fixes 4 bugs. - Added: `selector-no-unmatchable` rule ([#9451](stylelint/stylelint#9451)) ([@jeddy3](https://github.com/jeddy3)). - Added: `ignoreFunctions: []` to `color-named` and `color-no-hex` ([#9463](stylelint/stylelint#9463)) ([@jsmitty12](https://github.com/jsmitty12)). - Fixed: `custom-property-no-missing-var-function` false positives for anchor positioning ([#9466](stylelint/stylelint#9466)) ([@giaBaoJS](https://github.com/giaBaoJS)). - Fixed: `declaration-block-no-redundant-longhand-properties` autofix for `font` shorthand ([#9402](stylelint/stylelint#9402)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: `declaration-property-max-values` false positives for interpolated inline expressions ([#9437](stylelint/stylelint#9437)) ([@alexchen-sys](https://github.com/alexchen-sys)). - Fixed: `selector-no-invalid` false negatives for pseudo-elements, combinators and nested `:has()` ([#9452](stylelint/stylelint#9452)) ([@jeddy3](https://github.com/jeddy3)). ## [v17.14.1](https://github.com/stylelint/stylelint/blob/HEAD/CHANGELOG.md#17141---2026-07-20) - Fixed: `declaration-block-no-redundant-longhand-properties` autofix producing invalid `background` shorthand when `background-size` is present ([#9364](stylelint/stylelint#9364)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: `quiet` option suppresses `report*` warning reports. ([#9387](stylelint/stylelint#9387)) ([@ychampion](https://github.com/ychampion)). - Fixed: `rule-empty-line-before` false positives for shared-line comments with `except: ["after-single-line-comment"]` ([#9394](stylelint/stylelint#9394)) ([@sarathfrancis90](https://github.com/sarathfrancis90)). - Fixed: reported range of unknown rules ([#9385](stylelint/stylelint#9385)) ([@ybiquitous](https://github.com/ybiquitous)).
Fixes #9375.
quietalready suppresses regular warning-severity rule reports. Thereport*Disablesoptions report throughreportCommentProblem(), so they bypassed that check. This adds the same warning-only quiet guard there while keeping error-severity reports visible.Validation:
node --input-type=module <standalone reproduction>returned 0 warnings after the fix; returned 5 warnings before the fixnpm run test-jest --ignore-scripts -- lib/__tests__/standalone-quiet.test.mjsnpm run test-jest --ignore-scripts -- lib/__tests__/standalone-quiet.test.mjs lib/__tests__/descriptionlessDisables.test.mjs lib/__tests__/invalidScopeDisables.test.mjs lib/__tests__/needlessDisables.test.mjs lib/__tests__/unscopedDisables.test.mjs lib/__tests__/reportDisables.test.mjsnpx prettier --check .changeset/quiet-report-warnings.md lib/__tests__/standalone-quiet.test.mjs lib/utils/reportCommentProblem.mjsnpx eslint lib/__tests__/standalone-quiet.test.mjs lib/utils/reportCommentProblem.mjs --max-warnings=0npx remark .changeset/quiet-report-warnings.md --quiet --frailnpm run lint:typesgit diff --check