postcss-lineheight-warn

0.0.0 • Public • Published

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.

Package Sidebar

Install

npm i postcss-lineheight-warn

Weekly Downloads

1

Version

0.0.0

License

MIT

Last publish

Collaborators

  • magalhini