Skip to content

Commit

Permalink
Enable Stylelint property-no-unknown (mastodon#24404)
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni authored Apr 5, 2023
1 parent 45848d6 commit cd14f71
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
1 change: 0 additions & 1 deletion app/javascript/styles/mastodon/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2941,7 +2941,6 @@ $ui-header-height: 55px;
width: 85%;
height: 100%;
pointer-events: none;
user-drag: none;
user-select: none;
}

Expand Down
15 changes: 14 additions & 1 deletion stylelint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ module.exports = {
'no-descending-specificity': null,
'no-duplicate-selectors': null,
'number-max-precision': 8,
'property-no-unknown': null,
'property-no-vendor-prefix': null,
'selector-class-pattern': null,
'selector-id-pattern': null,
Expand All @@ -23,4 +22,18 @@ module.exports = {
'scss/dollar-variable-empty-line-before': null,
'scss/no-global-function-names': null,
},
overrides: [
{
'files': ['app/javascript/styles/mailer.scss'],
rules: {
'property-no-unknown': [
true,
{
ignoreProperties: [
'/^mso-/',
] },
],
},
},
],
};

0 comments on commit cd14f71

Please # to comment.