Skip to content

Commit 22fc9f8

Browse files
Update dependency stylelint-use-logical-spec to v4 (#1845)
* Update dependency stylelint-use-logical-spec to v4 * ignore margin and padding shorthands Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Scott Vandehey <[email protected]>
1 parent 57398e6 commit 22fc9f8

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

.stylelintrc.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,17 @@ module.exports = {
4242
'liberty/use-logical-spec': [
4343
'always',
4444
{
45-
// Until Safari 15 adoption is higher
46-
except: ['clear', 'float', /^border-.+-radius$/i],
45+
// 1. Until Safari 15 adoption is higher
46+
// 3. Removing matches for `margin` and `padding` shorthand, which
47+
// stylelint-use-logical-spec wants to break into the longhand
48+
// `-block` and `-inline` properties.
49+
except: [
50+
'clear', // 1
51+
'float', // 1
52+
/^border-.+-radius$/i, // 1
53+
/^margin$/i, // 2
54+
/^padding$/i, // 2
55+
],
4756
},
4857
],
4958
},

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"stylelint": "14.9.1",
109109
"stylelint-config-cloudfour": "5.1.0",
110110
"stylelint-config-prettier": "9.0.3",
111-
"stylelint-use-logical-spec": "3.2.2",
111+
"stylelint-use-logical-spec": "4.1.0",
112112
"through2": "4.0.2",
113113
"tiny-glob": "0.2.9",
114114
"twing": "3.1.1",

0 commit comments

Comments
 (0)