PublicisSapient / enable-a11y

MIT License
11 stars 5 forks source link

Enforce using rems/ems in stylesheets #153

Open alisonhall opened 1 week ago

alisonhall commented 1 week ago

We would like to have a linting/formatting rule to help enforce using responsive units (rems or ems) in our styles. This would help ensure code quality and help make sure that new code is responsive.

One way to do this may be to include the stylelint package in our code and include the stylelint-rem-over-px plugin. If using this approach, we would need to make sure that stylelint doesn't conflict with our existing prettier and eslint settings. stylelint-config-prettier may help with that.

We should investigate if there are better or easier ways to enforce this rule.