Back to Taro

font-weight-no-ignored-values

packages/stylelint-taro-rn/src/rules/font-weight-no-ignored-values/README.md

4.2.0957 B
Original Source

font-weight-no-ignored-values

Disallow valid font-weight values that work on iOS, but are ignored and get mapped to normal or bold weight on Android.

css
.a {
  font-weight: 500;
}
/**            ↑
 *             This value */

More info:

Options

true

The following patterns are considered violations:

css
.a {
  font-weight: 100;
}
css
.a {
  font-weight: 300;
}

The following patterns are not considered violations:

css
.a {
  font-weight: 400;
}
css
.a {
  font-weight: 700;
}
css
.a {
  font-weight: normal;
}
css
.a {
  font-weight: bold;
}