Skip to content

Commit

Permalink
ci: fix stylelint check
Browse files Browse the repository at this point in the history
With latest styleint (16.13.1):
```
[…]/cr3gui/data/html5.css:185:15: Unexpected unknown value "-cr-html-align-center" for property "text-align" (declaration-property-value-no-unknown) [error]
[…]/cr3gui/data/html5.css:189:15: Unexpected unknown value "-cr-html-align-left" for property "text-align" (declaration-property-value-no-unknown) [error]
[…]/cr3gui/data/html5.css:193:15: Unexpected unknown value "-cr-html-align-right" for property "text-align" (declaration-property-value-no-unknown) [error]
[…]/cr3gui/data/html5.css:197:15: Unexpected unknown value "-cr-html-align-center" for property "text-align" (declaration-property-value-no-unknown) [error]
[…]/cr3gui/data/html5.css:495:17: Unexpected unknown value "-cr-special" for property "padding-left" (declaration-property-value-no-unknown) [error]
[…]/cr3gui/data/html5.css:496:18: Unexpected unknown value "-cr-special" for property "padding-right" (declaration-property-value-no-unknown) [error]
[…]/cr3gui/data/html5.css:503:17: Unexpected unknown value "-cr-special" for property "padding-left" (declaration-property-value-no-unknown) [error]
[…]/cr3gui/data/html5.css:504:18: Unexpected unknown value "-cr-special" for property "padding-right" (declaration-property-value-no-unknown) [error]
[…]/cr3gui/data/html5.css:738:15: Unexpected unknown value "-cr-html-align-left" for property "text-align" (declaration-property-value-no-unknown) [error]
[…]/cr3gui/data/html5.css:748:15: Unexpected unknown value "-cr-html-align-right" for property "text-align" (declaration-property-value-no-unknown) [error]
[…]/cr3gui/data/html5.css:755:15: Unexpected unknown value "-cr-html-align-center" for property "text-align" (declaration-property-value-no-unknown) [error]
```
  • Loading branch information
benoit-pierre committed Jan 13, 2025
1 parent 3e1ee18 commit a90cc2f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
"comment-empty-line-before": null,
"declaration-block-no-redundant-longhand-properties": null,
"declaration-block-single-line-max-declarations": null,
"declaration-property-value-no-unknown": [true, {
"ignoreProperties": {
"/^padding.*$/": "-cr-special",
"/^text-align.*$/": [
"/^-cr-html-align-(center|left|right)$/",
"-cr-right-if-not-first"
]
}
}],
"no-descending-specificity": [true, { "severity": "warning" }],
"no-duplicate-selectors": [true, { "severity": "warning" }],
"property-no-unknown": [true, {
Expand Down

0 comments on commit a90cc2f

Please sign in to comment.