Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions packages/stylelint-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Configuration extends community maintained config [stylelint-config-standard-scs

This config:

- Extends the [`stylelint-config-recommended` shared config](https://github.com/stylelint/stylelint-config-recommended) and configures its rules for SCSS;
- extends the [`stylelint-config-recommended` shared config](https://github.com/stylelint/stylelint-config-recommended) and configures its rules for SCSS;
- extends the [`stylelint-config-recommended-scss` shared config](https://github.com/stylelint-scss/stylelint-config-recommended-scss) and configures its rules for SCSS;
- extends the [`stylelint-config-standard` shared config](https://github.com/stylelint/stylelint-config-standard) and configures its rules.

Expand Down Expand Up @@ -77,13 +77,16 @@ The `order` config enforces a consistent order of content in your declaration bl
1. Sass variables,
2. CSS custom properties,
3. Sass `@extend`,
4. single-line Sass `@include`,
5. declarations,
6. nested rules,
4. declarations,
5. nested rules.

For better flexibility, block at-rules (like `@media`, `@supports`, and also Sass `@if`, `@each`, etc.) can be placed
anywhere in the declaration block.

> [!NOTE]
> Note that this config does not prescribe placement of blockless Sass `@include` at-rule. However, the Sass engine
> may push you to place them at the end of the declaration block due to compatibility with CSS nesting.

Besides, properties in the declarations must be ordered by following categories:

1. `all` properties,
Expand Down
5 changes: 0 additions & 5 deletions packages/stylelint-config/rules/order.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ export default {
name: 'extend',
type: 'at-rule',
},
{
hasBlock: false,
name: 'include',
type: 'at-rule',
},
'declarations',
'rules',
],
Expand Down
Loading