Skip to content

Commit

Permalink
Merge pull request #150 from hudochenkov/stylelint-v14
Browse files Browse the repository at this point in the history
Compatibility with Stylelint 14
  • Loading branch information
hudochenkov authored Oct 21, 2021
2 parents 908f93f + 94c8847 commit b004e65
Show file tree
Hide file tree
Showing 20 changed files with 3,294 additions and 4,331 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
with:
node-version: ${{ matrix.node }}

- name: Install latest npm
run: npm install --global npm@latest

- run: npm ci

- name: Lint and Test
Expand Down
12 changes: 0 additions & 12 deletions .npm-upgrade.json

This file was deleted.

18 changes: 1 addition & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,23 +54,7 @@ Automatic sorting has some limitations that are described for every rule, if any

CSS-in-JS styles with template interpolation [could be ignored by autofixing](https://github.com/hudochenkov/postcss-sorting#css-in-js) to avoid style corruption.

Autofixing is enabled by default if it's enabled in stylelint's configuration file. It can be disabled on a per rule basis using the secondary option `disableFix: true`. Here's an example:

```json
"rules": {
"order/order": [
[
"custom-properties",
"declarations"
],
{
"disableFix": true
}
]
}
```

Less may work but isn't officially supported.
Autofixing in Less syntax may work but isn't officially supported.

## Example configs

Expand Down
Loading

0 comments on commit b004e65

Please sign in to comment.