0.0.0 • Published 8 years ago

postcss-lineheight-warn v0.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

PostCSS line-height Warning Build Status

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.