Back to Taro

line-height-no-value-without-unit

packages/stylelint-taro-rn/src/rules/line-height-no-value-without-unit/README.md

4.2.0453 B
Original Source

line-height-no-value-without-unit

Disallow invalid line-height values on React Native.

css
.a {
  line-height: 1;
}
/**            ↑
 *             This value */

More info:

Options

true

The following value or without units will be ignored:

css
.a {
  line-height: 2;
}
css
.a {
  line-height: 100%;
}
css
.a {
  line-height: 100pt;
}