Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 744 Bytes

README.md

File metadata and controls

50 lines (37 loc) · 744 Bytes

no-spread-text

Require width of text greater than 45 characters and less than 80 characters.

Sources:

Warning! This rule use some heuristics for define css node with styles for text. It may be unstable.

Options

true

The following pattern is considered a violation:

.foo {
  text-transform: lowercase;
  max-width: 40ch;
}
.foo {
  line-height: 1.8;
  max-width: 82ch;
}

The following patterns are not considered violations:

.foo {
  max-width: 65ch;
}
.foo {
  max-width: 82ch;
}
.foo {
  max-width: 100px;
}