@uncinc/stylelint-config

2.1.0 • Public • Published

Stylelint config

Make the things that make our products look pretty, look pretty!

Additional explanation for certain rules

declaration-no-important

Using !important is very bad practise. Please do not do it.

If you run stylelint in your project, and you are presented with an enormous amount of errors because of !importants, please do not add a eslint-disable-next-line or disable the rule for entire files.

Instead, overwrite the declaration-no-important rule in your .stylelintrc in the project, and set the severity to warning.

order/order

We have extended stylelint-config-clean-order which is a config for stylelint-order. This package does what you expect it to do.

In our own config we've overwritten the sorting of just the selectors (blocks). Since regular expressions are a bit hard to read sometimes, here's the sorting as we've configured it:

.parentClass {
  @media #{$normal} {
  }

  &:hover {
  }

  &__foo {
  }

  &--bar {
  }

  &.active {
  }

  div {
  }
  
  .childClass {
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @uncinc/stylelint-config

Weekly Downloads

31

Version

2.1.0

License

MIT

Unpacked Size

4.46 kB

Total Files

4

Last publish

Collaborators

  • wotts
  • niels.uncinc
  • martijnhoutman
  • nico-uncinc
  • rarothedude
  • boazpoolman