Skip to content

Commit

Permalink
Prepare 15.0.0 (#241)
Browse files Browse the repository at this point in the history
Co-authored-by: Masafumi Koba <[email protected]>
  • Loading branch information
jeddy3 and ybiquitous authored Jan 12, 2025
1 parent e12b3b4 commit 94cf8b6
Show file tree
Hide file tree
Showing 4 changed files with 301 additions and 146 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Changelog

## 15.0.0

This release replaces four rules with broader and more capable ones that validate CSS against syntaxes defined by W3C: `at-rule-descriptor-value-no-unknown`, `at-rule-prelude-no-invalid` and `declaration-property-value-no-unknown`.

- Removed: `stylelint` less than `16.13.0` from peer dependencies.
- Removed: `color-no-invalid-hex` rule.
- Removed: `function-linear-gradient-no-nonstandard-direction` rule.
- Removed: `function-no-unknown` rule.
- Removed: `unit-no-unknown` rule.
- Changed: `string-no-newline` rule option to `{ ignore: ['at-rule-preludes', 'declaration-values'] }]`.
- Added: `at-rule-descriptor-no-unknown` rule.
- Added: `at-rule-descriptor-value-no-unknown` rule.
- Added: `at-rule-no-deprecated` rule.
- Added: `at-rule-prelude-no-invalid` rule.
- Added: `declaration-property-value-keyword-no-deprecated` rule.
- Added: `declaration-property-value-no-unknown` rule.
- Added: `media-feature-name-value-no-unknown` rule.

## 14.0.1

- Fixed: missing `funding` field in `package.json`.
Expand Down
13 changes: 8 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
module.exports = {
rules: {
'annotation-no-unknown': true,
'at-rule-descriptor-no-unknown': true,
'at-rule-descriptor-value-no-unknown': true,
'at-rule-no-deprecated': true,
'at-rule-no-unknown': true,
'at-rule-prelude-no-invalid': [true, { ignoreAtRules: ['media'] }],
'block-no-empty': true,
'color-no-invalid-hex': true,
'comment-no-empty': true,
'custom-property-no-missing-var-function': true,
'declaration-block-no-duplicate-custom-properties': true,
Expand All @@ -16,14 +19,15 @@ module.exports = {
},
],
'declaration-block-no-shorthand-property-overrides': true,
'declaration-property-value-keyword-no-deprecated': true,
'declaration-property-value-no-unknown': true,
'font-family-no-duplicate-names': true,
'font-family-no-missing-generic-family-keyword': true,
'function-calc-no-unspaced-operator': true,
'function-linear-gradient-no-nonstandard-direction': true,
'function-no-unknown': true,
'keyframe-block-no-duplicate-selectors': true,
'keyframe-declaration-no-important': true,
'media-feature-name-no-unknown': true,
'media-feature-name-value-no-unknown': true,
'media-query-no-invalid': true,
'named-grid-areas-no-invalid': true,
'no-descending-specificity': true,
Expand All @@ -43,7 +47,6 @@ module.exports = {
ignore: ['custom-elements'],
},
],
'string-no-newline': true,
'unit-no-unknown': true,
'string-no-newline': [true, { ignore: ['at-rule-preludes', 'declaration-values'] }],
},
};
Loading

0 comments on commit 94cf8b6

Please sign in to comment.