README
A dead simple PostCSS plugin that gives you a warning when a unit value is used on your line-height
rules.
It does not convert any values or performs any changes; it merely logs a warning.
Installation
npm install --save-dev postcss-lineheight-warn
.foo {
line-height: 3em;
}
Will log:
WARNING in ./~/css-loader!./~/postcss-loader!./sample.css
postcss-lineheight-warn: line-height should be unitless: line-height: 3em; at line 2
Usage
postcss([ require('postcss-lineheight-warn') ])
See the /example
folder for a Webpack example.