Skip to content

Commit

Permalink
fix: warn user for unfixable properties
Browse files Browse the repository at this point in the history
  • Loading branch information
ismay authored and ismay committed Sep 18, 2024
1 parent ccf2b44 commit 2c4134c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions config/stylelint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,27 @@ module.exports = {
],
plugins: ['stylelint-use-logical'],
rules: {
/**
* Warn user when properties can't be autofixed:
* https://github.com/csstools/stylelint-use-logical/issues/29
*/
'declaration-property-value-disallowed-list': [
{
'border-color': [],
'border-style': [],
'border-width': [],
inset: [],
margin: [],
padding: [],
'scroll-margin': [],
'scroll-padding': [],
},
{
message: (prop) =>
`Use longhand form of ${prop} so that it can be autofixed to logical properties and values`,
severity: 'warning',
},
],
'csstools/use-logical': [
true,
{
Expand Down

0 comments on commit 2c4134c

Please sign in to comment.