Skip to content

Commit 9af29c4

Browse files
TCE-1311 Bump Stylelint 16.23.0 (#497)
* TCE-1311 Bump Stylelint 16.23.0
1 parent 3f7827b commit 9af29c4

File tree

154 files changed

+3906
-1190
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+3906
-1190
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2.1
22

33
orbs:
4-
codacy: codacy/base@12.1.3
4+
codacy: codacy/base@12.2.0
55
codacy_plugins_test: codacy/[email protected]
66

77
workflows:
@@ -11,8 +11,8 @@ workflows:
1111
write_sbt_version: true
1212
- codacy/sbt:
1313
name: publish_docker_local
14-
openjdk_version: "11"
15-
install_sbt_version: "1.10.0"
14+
openjdk_version: "17"
15+
install_sbt_version: "1.10.1"
1616
cmd: |
1717
sbt "scalafmtCheckAll;
1818
scalafmtSbtCheck;

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ project/metals.sbt
1414
node_modules/
1515
.stylelint-version
1616
.vscode/
17+
18+
19+
#Ignore vscode AI rules
20+
.github/copilot-instructions.md

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:lts-alpine3.20
1+
FROM node:lts-alpine3.22
22

33
WORKDIR /workdir
44

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ThisBuild / scalaVersion := "2.13.13"
22

33
ThisBuild / libraryDependencies ++= Seq(
4-
"com.codacy" %% "codacy-engine-scala-seed" % "6.1.3",
4+
"com.codacy" %% "codacy-engine-scala-seed" % "6.1.5",
55
"com.github.pathikrit" %% "better-files" % "3.9.2")
66

77
name := "codacy-stylelint"

docs/description/alpha-value-notation.md

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,20 @@ Specify percentage or number notation for alpha-values.
99
* This notation */
1010
```
1111

12-
The [`fix` option](https://github.com/stylelint/stylelint/16.17.0/docs/user-guide/options.md#fix) can automatically fix all of the problems reported by this rule.
13-
14-
The [`message` secondary option](https://github.com/stylelint/stylelint/16.17.0/docs/user-guide/configure.md#message) can accept the arguments of this rule.
12+
The [`fix` option](https://github.com/stylelint/stylelint/16.23.0/docs/user-guide/options.md#fix) can automatically fix all of the problems reported by this rule.
1513

1614
## Options
1715

18-
`string`: `"number"|"percentage"`
19-
2016
### `"number"`
2117

2218
Alpha-values _must always_ use the number notation.
2319

20+
```json
21+
{
22+
"alpha-value-notation": "number"
23+
}
24+
```
25+
2426
The following patterns are considered problems:
2527

2628
<!-- prettier-ignore -->
@@ -49,6 +51,12 @@ a { color: rgb(0 0 0 / 0.5) }
4951

5052
Alpha-values _must always_ use percentage notation.
5153

54+
```json
55+
{
56+
"alpha-value-notation": "percentage"
57+
}
58+
```
59+
5260
The following patterns are considered problems:
5361

5462
<!-- prettier-ignore -->
@@ -75,16 +83,20 @@ a { color: rgb(0 0 0 / 50%) }
7583

7684
## Optional secondary options
7785

78-
### `exceptProperties: ["/regex/", /regex/, "string"]`
86+
### `exceptProperties`
7987

80-
Reverse the primary option for matching properties.
88+
```json
89+
{ "exceptProperties": ["array", "of", "properties", "/regex/"] }
90+
```
8191

82-
For example with `"percentage"`.
92+
Reverse the primary option for matching properties.
8393

8494
Given:
8595

8696
```json
87-
["opacity"]
97+
{
98+
"alpha-value-notation": ["percentage", { "exceptProperties": ["opacity"] }]
99+
}
88100
```
89101

90102
The following patterns are considered problems:

docs/description/annotation-no-unknown.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@ a { color: green !imprtant; }
1111

1212
This rule considers annotations defined in the CSS Specifications, up to and including Editor's Drafts, to be known.
1313

14-
The [`message` secondary option](https://github.com/stylelint/stylelint/16.17.0/docs/user-guide/configure.md#message) can accept the arguments of this rule.
15-
1614
## Options
1715

1816
### `true`
1917

18+
```json
19+
{
20+
"annotation-no-unknown": true
21+
}
22+
```
23+
2024
The following pattern is considered a problem:
2125

2226
<!-- prettier-ignore -->
@@ -37,12 +41,21 @@ a {
3741

3842
## Optional secondary options
3943

40-
### `ignoreAnnotations: ["/regex/", /regex/, "string"]`
44+
### `ignoreAnnotations`
45+
46+
```json
47+
{ "ignoreAnnotations": ["array", "of", "annotations", "/regex/"] }
48+
```
4149

4250
Given:
4351

4452
```json
45-
["/^--foo-/", "--bar"]
53+
{
54+
"annotation-no-unknown": [
55+
true,
56+
{ "ignoreAnnotations": ["/^--foo-/", "--bar"] }
57+
]
58+
}
4659
```
4760

4861
The following patterns are _not_ considered problems:

docs/description/at-rule-allowed-list.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,20 @@ Specify a list of allowed at-rules.
1111

1212
This rule ignores the `@charset` rule.
1313

14-
The [`message` secondary option](https://github.com/stylelint/stylelint/16.17.0/docs/user-guide/configure.md#message) can accept the arguments of this rule.
15-
1614
## Options
1715

18-
`array|string`: `["array", "of", "unprefixed", "at-rules"]|"at-rule"`
16+
### `Array<string>`
17+
18+
```json
19+
["array", "of", "unprefixed", "at-rules"]
20+
```
1921

2022
Given:
2123

2224
```json
23-
["extend", "keyframes"]
25+
{
26+
"at-rule-allowed-list": ["extend", "keyframes"]
27+
}
2428
```
2529

2630
The following patterns are considered problems:

docs/description/at-rule-descriptor-no-unknown.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ You can filter the [CSSTree Syntax Reference](https://csstree.github.io/docs/syn
1717

1818
This rule is only appropriate for CSS. You should not turn it on for CSS-like languages, such as SCSS or Less.
1919

20-
The [`message` secondary option](https://github.com/stylelint/stylelint/16.17.0/docs/user-guide/configure.md#message) can accept the arguments of this rule.
20+
This rule checks descriptors within at-rules. To check properties, you can use the [`property-no-unknown`](https://github.com/stylelint/stylelint/16.23.0/lib/rules/property-no-unknown/README.md) rule.
2121

22-
This rule checks descriptors within at-rules. To check properties, you can use the [`property-no-unknown`](https://github.com/stylelint/stylelint/16.17.0/lib/rules/property-no-unknown/README.md) rule.
23-
24-
For customizing syntax, see the [`languageOptions`](https://github.com/stylelint/stylelint/16.17.0/docs/user-guide/configure.md#languageoptions) section.
22+
For customizing syntax, see the [`languageOptions`](https://github.com/stylelint/stylelint/16.23.0/docs/user-guide/configure.md#languageoptions) section.
2523

2624
Prior art:
2725

@@ -31,6 +29,12 @@ Prior art:
3129

3230
### `true`
3331

32+
```json
33+
{
34+
"at-rule-descriptor-no-unknown": true
35+
}
36+
```
37+
3438
The following patterns are considered problems:
3539

3640
<!-- prettier-ignore -->

docs/description/at-rule-descriptor-value-no-unknown.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,19 @@ You can filter the [CSSTree Syntax Reference](https://csstree.github.io/docs/syn
1717

1818
This rule is only appropriate for CSS. You should not turn it on for CSS-like languages, such as SCSS or Less.
1919

20-
The [`message` secondary option](https://github.com/stylelint/stylelint/16.17.0/docs/user-guide/configure.md#message) can accept the arguments of this rule.
21-
22-
This rule checks descriptor values within at-rules. You can use [`declaration-property-value-no-unknown`](https://github.com/stylelint/stylelint/16.17.0/lib/rules/declaration-property-value-no-unknown/README.md) to disallow unknown values for properties within declarations, and [`at-rule-descriptor-no-unknown`](https://github.com/stylelint/stylelint/16.17.0/lib/rules/at-rule-descriptor-no-unknown/README.md) to disallow unknown descriptors for at-rules.
20+
This rule checks descriptor values within at-rules. You can use [`declaration-property-value-no-unknown`](https://github.com/stylelint/stylelint/16.23.0/lib/rules/declaration-property-value-no-unknown/README.md) to disallow unknown values for properties within declarations, and [`at-rule-descriptor-no-unknown`](https://github.com/stylelint/stylelint/16.23.0/lib/rules/at-rule-descriptor-no-unknown/README.md) to disallow unknown descriptors for at-rules.
2321

2422
This rule overlaps with:
2523

26-
- [`color-no-invalid-hex`](https://github.com/stylelint/stylelint/16.17.0/lib/rules/color-no-invalid-hex/README.md)
27-
- [`function-linear-gradient-no-nonstandard-direction`](https://github.com/stylelint/stylelint/16.17.0/lib/rules/function-linear-gradient-no-nonstandard-direction/README.md)
28-
- [`function-no-unknown`](https://github.com/stylelint/stylelint/16.17.0/lib/rules/function-no-unknown/README.md)
29-
- [`string-no-newline`](https://github.com/stylelint/stylelint/16.17.0/lib/rules/string-no-newline/README.md)
30-
- [`unit-no-unknown`](https://github.com/stylelint/stylelint/16.17.0/lib/rules/unit-no-unknown/README.md)
24+
- [`color-no-invalid-hex`](https://github.com/stylelint/stylelint/16.23.0/lib/rules/color-no-invalid-hex/README.md)
25+
- [`function-linear-gradient-no-nonstandard-direction`](https://github.com/stylelint/stylelint/16.23.0/lib/rules/function-linear-gradient-no-nonstandard-direction/README.md)
26+
- [`function-no-unknown`](https://github.com/stylelint/stylelint/16.23.0/lib/rules/function-no-unknown/README.md)
27+
- [`string-no-newline`](https://github.com/stylelint/stylelint/16.23.0/lib/rules/string-no-newline/README.md)
28+
- [`unit-no-unknown`](https://github.com/stylelint/stylelint/16.23.0/lib/rules/unit-no-unknown/README.md)
3129

3230
You can either turn off the rules or configure them to ignore the overlaps.
3331

34-
For customizing syntax, see the [`languageOptions`](https://github.com/stylelint/stylelint/16.17.0/docs/user-guide/configure.md#languageoptions) section.
32+
For customizing syntax, see the [`languageOptions`](https://github.com/stylelint/stylelint/16.23.0/docs/user-guide/configure.md#languageoptions) section.
3533

3634
Prior art:
3735

@@ -41,6 +39,12 @@ Prior art:
4139

4240
### `true`
4341

42+
```json
43+
{
44+
"at-rule-descriptor-value-no-unknown": true
45+
}
46+
```
47+
4448
The following patterns are considered problems:
4549

4650
<!-- prettier-ignore -->

docs/description/at-rule-disallowed-list.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,20 @@ Specify a list of disallowed at-rules.
1111

1212
This rule ignores the `@charset` rule.
1313

14-
The [`message` secondary option](https://github.com/stylelint/stylelint/16.17.0/docs/user-guide/configure.md#message) can accept the arguments of this rule.
15-
1614
## Options
1715

18-
`array|string`: `["array", "of", "unprefixed", "at-rules"]|"at-rule"`
16+
### `Array<string>`
17+
18+
```json
19+
["array", "of", "unprefixed", "at-rules"]
20+
```
1921

2022
Given:
2123

2224
```json
23-
["extend", "keyframes"]
25+
{
26+
"at-rule-disallowed-list": ["extend", "keyframes"]
27+
}
2428
```
2529

2630
The following patterns are considered problems:

0 commit comments

Comments
 (0)