Skip to content
Draft
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
82 changes: 45 additions & 37 deletions tools/stylelint/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,51 @@ module.exports = {
},
},
],
'declaration-property-max-values': {
// Prevents left/right values with shorthand property names (unclear for RTL)
margin: 3,
padding: 3,
'border-width': 3,
'border-color': 3,
'border-style': 3,
'border-radius': 3,
inset: 3,
},
'logical-css/require-logical-keywords': [ true ],
'logical-css/require-logical-properties': [
true,
{
ignore: [
// Doesn't affect RTL styles
'border-bottom',
'border-bottom-color',
'border-bottom-style',
'border-bottom-width',
'border-top',
'border-top-color',
'border-top-style',
'border-top-width',
'width',
'min-width',
'max-width',
'height',
'min-height',
'max-height',
'margin-top',
'margin-bottom',
'overflow-x',
'overflow-y',
'padding-top',
'padding-bottom',
'scroll-margin-top',
'scroll-margin-bottom',
'scroll-padding-top',
'scroll-padding-bottom',
'top',
'bottom',
],
},
],
'font-weight-notation': 'numeric',
'@stylistic/max-line-length': null,
'no-descending-specificity': null,
Expand Down Expand Up @@ -161,43 +206,6 @@ module.exports = {
true,
{ ignoreFunctions: CSS_BASELINE_2024_FUNCTIONS },
],
'declaration-property-max-values': {
// Prevents left/right values with shorthand property names (unclear for RTL)
margin: 3,
padding: 3,
'border-width': 3,
'border-color': 3,
'border-style': 3,
'border-radius': 3,
inset: 3,
},
'logical-css/require-logical-keywords': [ true ],
'logical-css/require-logical-properties': [
true,
{
ignore: [
// Doesn't affect RTL styles
'border-bottom',
'border-top',
'width',
'min-width',
'max-width',
'height',
'min-height',
'max-height',
'margin-top',
'margin-bottom',
'overflow-x',
'overflow-y',
'padding-top',
'padding-bottom',
'scroll-margin-top',
'scroll-margin-bottom',
'top',
'bottom',
],
},
],
'property-no-unknown': [
true,
{
Expand Down
Loading
Loading