4.3.0 • Published 20 days ago

@w0s/stylelint-config v4.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
20 days ago

stylelint-config

npm version test status

Stylelint configuration file used on my personal website (w0s.jp).

Features

It is based on stylelint-config-standard with its own rule settings.

  • Disallow !important within declarations.
    • 🙁 color: #000 !important
    • 🙂 color: #000
  • Do not use ID selector.
    • 😨 #foo { color: #000 }
    • 🙂 .foo { color: #000 }
  • Do not use multiple universal selectors. However, this excludes the use of a next-sibling combinator (+).
    • 🙂 *
    • 😨 * > *
    • 🙂 * + * (This is used in the "owl selector" in stack layout)
  • Use of CSS physical properties and values is not recommended. Use logical properties and values.
    • 🙁 margin-top: 1em
    • 🙂 margin-block-start: 1em
    • 🙁 text-align: right
    • 🙂 text-align: end
  • Multi-keyword syntax is recommended for the display property.
    • 🙁 display: block
    • 🙂 display: block flow
  • The order of properties within declaration blocks follows stylelint-config-concentric-order.
    • 😨 .foo { padding: 1em; margin: 1em }
    • 🙂 .foo { margin: 1em; padding: 1em }

See source code for other details.

Usage

{
  "extends": ["@w0s/stylelint-config"]
}
4.3.0

20 days ago

4.1.0

2 months ago

4.2.0

2 months ago

4.1.1

2 months ago

4.0.1

2 months ago

4.0.0

2 months ago

2.0.2

2 months ago

3.0.0

2 months ago

2.0.1

3 months ago

2.0.0

4 months ago

1.2.1

9 months ago

1.2.0

10 months ago

1.1.0

1 year ago

1.0.2

1 year ago