Skip to content

Commit 49fff0d

Browse files
authored
Upgrade to Stylelint v14 (#27)
1 parent 9846094 commit 49fff0d

File tree

9 files changed

+5046
-2908
lines changed

9 files changed

+5046
-2908
lines changed

CHANGELOG.md

Lines changed: 58 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,77 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66

77
## Unreleased
88

9+
## [2.0.0](https://github.com/torchbox/stylelint-config-torchbox/compare/v1.1.1...v2.0.0) (2023-08-17)
10+
11+
### Features
12+
13+
- Update stylelint to v14 for compatibility with PostCSS v8 ([#13](https://github.com/torchbox/stylelint-config-torchbox/pull/13)).
14+
- Update all config dependencies to their latest releases, compatible with stylelint v14 ([#13](https://github.com/torchbox/stylelint-config-torchbox/pull/13)).
15+
- Remove `stylelint-a11y`, which is no longer maintained and does not support stylelint v14. `no-text-align-justify` has been replaced with `declaration-property-value-disallowed-list` ([#13](https://github.com/torchbox/stylelint-config-torchbox/pull/13)).
16+
- Stop enforcing `function-calc-no-invalid`, which has been removed from stylelint ([#13](https://github.com/torchbox/stylelint-config-torchbox/pull/13))
17+
- Change enforced rules from stylelint-config-standard and stylelint-config-prettier.
18+
19+
### BREAKING CHANGES
20+
21+
The configuration now mandates stylelint v14, doesn’t use `stylelint-a11y`, and follows changes in enforced rules from `stylelint-config-standard` and `stylelint-config-prettier`.
22+
23+
No longer enforced (all formatting related):
24+
25+
- [`at-rule-name-space-after`](https://stylelint.io/user-guide/rules/at-rule-name-space-after/)
26+
- [`declaration-bang-space-after`](https://stylelint.io/user-guide/rules/declaration-bang-space-after/)
27+
- [`declaration-bang-space-before`](https://stylelint.io/user-guide/rules/declaration-bang-space-before/)
28+
- [`media-feature-colon-space-after`](https://stylelint.io/user-guide/rules/media-feature-colon-space-after/)
29+
- [`media-feature-colon-space-before`](https://stylelint.io/user-guide/rules/media-feature-colon-space-before/)
30+
- [`media-feature-parentheses-space-inside`](https://stylelint.io/user-guide/rules/media-feature-parentheses-space-inside/)
31+
- [`selector-attribute-brackets-space-inside`](https://stylelint.io/user-guide/rules/selector-attribute-brackets-space-inside/)
32+
- [`selector-attribute-operator-space-after`](https://stylelint.io/user-guide/rules/selector-attribute-operator-space-after/)
33+
- [`selector-attribute-operator-space-before`](https://stylelint.io/user-guide/rules/selector-attribute-operator-space-before/)
34+
- [`selector-pseudo-class-parentheses-space-inside`](https://stylelint.io/user-guide/rules/selector-pseudo-class-parentheses-space-inside/)
35+
36+
No longer enforced (from `stylelint-a11y`):
37+
38+
- `a11y/no-obsolete-attribute`
39+
- `a11y/no-obsolete-element`
40+
- `a11y/no-outline-none`
41+
42+
Newly enforced rules:
43+
44+
- [`alpha-value-notation`](https://stylelint.io/user-guide/rules/alpha-value-notation/): `percentage, exceptProperties: opacity`
45+
- [`color-function-notation`](https://stylelint.io/user-guide/rules/color-function-notation/): `modern`
46+
- [`custom-media-pattern`](https://stylelint.io/user-guide/rules/custom-media-pattern/): `^(a-za-z0-9*)(-a-z0-9+)*$, message: Expected custom media query name to be kebab-case`
47+
- [`custom-property-pattern`](https://stylelint.io/user-guide/rules/custom-property-pattern/): `^(a-za-z0-9*)(-a-z0-9+)*$, message: Expected custom property name to be kebab-case`
48+
- [`declaration-block-no-redundant-longhand-properties`](https://stylelint.io/user-guide/rules/declaration-block-no-redundant-longhand-properties/)
49+
- [`font-family-name-quotes`](https://stylelint.io/user-guide/rules/font-family-name-quotes/): `always-where-recommended`
50+
- [`function-url-quotes`](https://stylelint.io/user-guide/rules/function-url-quotes/): `always`
51+
- [`hue-degree-notation`](https://stylelint.io/user-guide/rules/hue-degree-notation/): `angle`
52+
- [`keyframes-name-pattern`](https://stylelint.io/user-guide/rules/keyframes-name-pattern/): `^(a-za-z0-9*)(-a-z0-9+)*$, message: Expected keyframe name to be kebab-case`
53+
- [`no-irregular-whitespace`](https://stylelint.io/user-guide/rules/no-irregular-whitespace/)
54+
- [`number-max-precision`](https://stylelint.io/user-guide/rules/number-max-precision/): `4`
55+
- [`rule-empty-line-before`](https://stylelint.io/user-guide/rules/rule-empty-line-before/): `always-multi-line, except: first-nested, ignore: after-comment`
56+
- [`selector-id-pattern`](https://stylelint.io/user-guide/rules/selector-id-pattern/): `^(a-za-z0-9*)(-a-z0-9+)*$, message: Expected id selector to be kebab-case`
57+
- [`shorthand-property-no-redundant-values`](https://stylelint.io/user-guide/rules/shorthand-property-no-redundant-values/)
58+
- [`custom-property-no-missing-var-function`](https://stylelint.io/user-guide/rules/custom-property-no-missing-var-function/)
59+
- [`declaration-block-no-duplicate-custom-properties`](https://stylelint.io/user-guide/rules/declaration-block-no-duplicate-custom-properties/)
60+
961
## [1.1.1](https://github.com/torchbox/stylelint-config-torchbox/compare/v1.1.0...v1.1.1) (2023-05-11)
1062

1163
### Bug fixes
1264

13-
- Ignore system colors with `declaration-strict-value`, and unset keyword
65+
- Ignore system colors with `declaration-strict-value`, and unset keyword.
1466

1567
## [1.1.0](https://github.com/torchbox/stylelint-config-torchbox/compare/v1.0.0...v1.1.0) (2022-06-25)
1668

17-
## Features
69+
### Features
1870

19-
- Add new at-rule-no-unknown rules for tailwind ([#21](https://github.com/torchbox/stylelint-config-torchbox/pull/21))
71+
- Add new at-rule-no-unknown rules for tailwind ([#21](https://github.com/torchbox/stylelint-config-torchbox/pull/21)).
2072

2173
## [1.0.0](https://github.com/torchbox/stylelint-config-torchbox/compare/v0.5.0...v1.0.0) (2020-11-10)
2274

2375
### Features
2476

25-
- Update stylelint to v13 ([#9](https://github.com/torchbox/stylelint-config-torchbox/pull/9))
26-
- Update all config dependencies to their latest releases, compatible with stylelint v13 ([#9](https://github.com/torchbox/stylelint-config-torchbox/pull/9))
27-
- Enforce [`value-keyword-case`](https://stylelint.io/user-guide/rules/value-keyword-case/) from stylelint v13 ([#9](https://github.com/torchbox/stylelint-config-torchbox/pull/9))
77+
- Update stylelint to v13 ([#9](https://github.com/torchbox/stylelint-config-torchbox/pull/9)).
78+
- Update all config dependencies to their latest releases, compatible with stylelint v13 ([#9](https://github.com/torchbox/stylelint-config-torchbox/pull/9)).
79+
- Enforce [`value-keyword-case`](https://stylelint.io/user-guide/rules/value-keyword-case/) from stylelint v13 ([#9](https://github.com/torchbox/stylelint-config-torchbox/pull/9)).
2880
- Rename all deprecated stylelint rules to their newer alternatives.
2981
- The config’s README documentation now links directly to rules’ documentation for plugins.
3082

0 commit comments

Comments
 (0)