-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enforce using rems/ems in stylesheets #153
Comments
Stylelint does not exist in the project currently. It will have to be installed first before this plugin can be used within the project. I have opened a ticket #196 which has to be completed before this issue is resolved. Tasks
|
Closes #153 * Added and enabled `stylelint-rem-over-px` * Fixed console errors
Closes #153 * Added and enabled `stylelint-rem-over-px` * Fixed console errors * Removed `stylelint-rem-over-px` for `stylelint`'s `declaration-property-unit-allowed-list` rule which allows for greater flexibility * Cleaned up console errors
The plugin stylelint-rem-over-px was eventually ditched in PR #204 for the |
Closes #153 * Added and enabled `stylelint-rem-over-px` * Fixed console errors * Removed `stylelint-rem-over-px` for `stylelint`'s `declaration-property-unit-allowed-list` rule which allows for greater flexibility * Cleaned up console errors
Closes #153 * Added and enabled `stylelint-rem-over-px` * Fixed console errors * Removed `stylelint-rem-over-px` for `stylelint`'s `declaration-property-unit-allowed-list` rule which allows for greater flexibility * Cleaned up console errors
Closes #153 * Added and enabled `stylelint-rem-over-px` * Fixed console errors * Removed `stylelint-rem-over-px` for `stylelint`'s `declaration-property-unit-allowed-list` rule which allows for greater flexibility * Cleaned up console errors * Separated `stylelint` into it's own task for `lint-staged` * Fxied up font-size calculations
…m-use (#153) Enforce using rems/ems in stylesheets
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.
The text was updated successfully, but these errors were encountered: