CSS rules to restrict allowed declarations #5291
thibaudcolas
started this conversation in
Rule suggestion
Replies: 1 comment
-
Copying @Venefilyn’s original reply:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Moving from ✅ Linter rules from other sources – here’s a family of CSS rules reliant on configuration that I’d find it hard to work without:
My use cases are to encourage:
margin-inline-start
instead ofmargin-left
;text-align: end
instead oftext-align: right
; etc)em
,rem
, etc) because pixel font sizes don’t support text resizingforced-color-adjust
, notext-transform: uppercase
).Sample configuration using those rules
Source: stylelint-config-wagtail index.js
Beta Was this translation helpful? Give feedback.
All reactions