Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fast-glasses-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/stylelint-polaris': major
---

Turn on reportNeedlessDisables for all comments
10 changes: 1 addition & 9 deletions stylelint-polaris/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,15 +504,7 @@ const stylelintPolarisCoverageOptions = {
module.exports = {
customSyntax: 'postcss-scss',
reportDescriptionlessDisables: true,
reportNeedlessDisables: [
true,
{
// Report needless disables for all rules except layout coverage rules
// Note: This doesn't affect the default Stylelint behavior/reporting
// and is only need because we dynamically create these rule names
except: ['all', /^polaris\/layout\/.+$/],
},
],
reportNeedlessDisables: true,
Copy link
Member Author

@alex-page alex-page Mar 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be an escape hatch for layout. Layout should not need comments at all.

Layout should be warnings. Warnings should not need a disable comment for CI to pass and ship.

reportInvalidScopeDisables: [
true,
{
Expand Down