Skip to content

Commit e0b8122

Browse files
authored
Merge branch 'main' into feature/no-invalid-position-declaration
2 parents d8e65b2 + 80e9074 commit e0b8122

File tree

31 files changed

+1713
-47
lines changed

31 files changed

+1713
-47
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"stylelint": patch
3+
---
4+
5+
Fixed: `no-irregular-whitespace` false positives for strings

.changeset/shaky-waves-show.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"stylelint": minor
3+
---
4+
5+
Added: `nesting-selector-no-missing-scoping-root` rule

.changeset/sour-fishes-fetch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"stylelint": minor
3+
---
4+
5+
Added: `except: ["exact-value"]` to `media-feature-range-notation`

.changeset/yellow-coats-report.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"stylelint": minor
3+
---
4+
5+
Added: `media-type-no-deprecated` rule

.changeset/young-bananas-design.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"stylelint": patch
3+
---
4+
5+
Fixed: `function-no-unknown` false positives

docs/user-guide/rules.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Disallow deprecated things with these `no-deprecated` rules.
2020
| :-- | :-: | :-: |
2121
| [`at-rule-no-deprecated`](../../lib/rules/at-rule-no-deprecated/README.md)<br/>Disallow deprecated at-rules. || 🔧 |
2222
| [`declaration-property-value-keyword-no-deprecated`](../../lib/rules/declaration-property-value-keyword-no-deprecated/README.md)<br/>Disallow deprecated keywords for properties within declarations. || 🔧 |
23+
| [`media-type-no-deprecated`](../../lib/rules/media-type-no-deprecated/README.md)<br/>Disallow deprecated media types. || |
2324
<!-- prettier-ignore-end -->
2425

2526
### Descending
@@ -98,6 +99,7 @@ Disallow missing things with these `no-missing` rules.
9899
| :-- | :-: | :-: |
99100
| [`custom-property-no-missing-var-function`](../../lib/rules/custom-property-no-missing-var-function/README.md)<br/>Disallow missing `var` function for custom properties. || |
100101
| [`font-family-no-missing-generic-family-keyword`](../../lib/rules/font-family-no-missing-generic-family-keyword/README.md)<br/>Disallow a missing generic family keyword within font families. || |
102+
| [`nesting-selector-no-missing-scoping-root`](../../lib/rules/nesting-selector-no-missing-scoping-root/README.md)<br/>Disallow missing scoping root for nesting selectors. || |
101103
<!-- prettier-ignore-end -->
102104

103105
### Non-standard

lib/reference/mediaTypes.cjs

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/reference/mediaTypes.mjs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* @see https://drafts.csswg.org/mediaqueries/#ref-for-media-type①⑨
3+
* @type {ReadonlySet<string>}
4+
*/
5+
export const deprecatedMediaTypesNames = new Set([
6+
'aural',
7+
'braille',
8+
'embossed',
9+
'handheld',
10+
'projection',
11+
'speech',
12+
'tty',
13+
'tv',
14+
]);

lib/rules/function-no-unknown/__tests__/index.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ testRule({
5252
code: 'a { animation-timing-function: linear(0, 0.25, 1); }',
5353
description: 'explicit linear check',
5454
},
55+
{
56+
code: 'h1 { string-set: Chapter content(); }',
57+
},
58+
{
59+
code: '@top-right { content: string(Chapter); }',
60+
},
61+
{
62+
code: 'a { --color: if(media(width >= 1px): red; else: green); }',
63+
},
5564
],
5665

5766
reject: [

lib/rules/function-no-unknown/index.cjs

Lines changed: 12 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)