Skip to content

Commit

Permalink
ci: upgrade Stylelint config
Browse files Browse the repository at this point in the history
many rules have been removed because Prettier handles it
  • Loading branch information
Robbert committed Jun 26, 2024
1 parent 13ffb3e commit de5892b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 76 deletions.
77 changes: 3 additions & 74 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"no-duplicate-at-import-rules": [true],
"no-duplicate-selectors": [true],
"no-empty-source": [true],
"no-extra-semicolons": null,
"no-invalid-double-slash-comments": [true],
"property-no-unknown": [true],
"selector-pseudo-class-no-unknown": [true],
Expand All @@ -57,8 +56,6 @@
"unit-disallowed-list": [["s"]],
"font-family-name-quotes": ["always-unless-keyword"],
"function-url-quotes": ["always"],
"number-leading-zero": null,
"number-no-trailing-zeros": null,
"declaration-property-value-disallowed-list": [
{
"text-align": ["left", "right"]
Expand Down Expand Up @@ -119,79 +116,11 @@
]
],
"selector-max-id": [0],
"indentation": null,
"linebreaks": null,
"max-line-length": null,
"function-comma-newline-after": null,
"function-comma-newline-before": null,
"function-comma-space-after": null,
"function-comma-space-before": null,
"function-max-empty-lines": null,
"function-parentheses-newline-inside": null,
"function-parentheses-space-inside": null,
"value-list-comma-newline-after": null,
"value-list-comma-newline-before": null,
"value-list-comma-space-after": null,
"value-list-comma-space-before": null,
"value-list-max-empty-lines": null,
"declaration-bang-space-after": ["never"],
"declaration-bang-space-before": ["always"],
"declaration-colon-newline-after": null,
"declaration-colon-space-after": null,
"declaration-colon-space-before": null,
"declaration-block-semicolon-newline-after": null,
"declaration-block-semicolon-newline-before": null,
"declaration-block-semicolon-space-after": null,
"declaration-block-semicolon-space-before": null,
"declaration-block-trailing-semicolon": null,
"block-closing-brace-empty-line-before": null,
"block-closing-brace-newline-after": null,
"block-closing-brace-newline-before": null,
"block-closing-brace-space-after": null,
"block-closing-brace-space-before": null,
"block-opening-brace-newline-after": null,
"block-opening-brace-newline-before": null,
"block-opening-brace-space-after": null,
"block-opening-brace-space-before": null,
"selector-attribute-brackets-space-inside": ["never"],
"selector-attribute-quotes": ["always"],
"selector-combinator-space-after": null,
"selector-combinator-space-before": null,
"selector-descendant-combinator-no-non-space": null,
"selector-pseudo-class-parentheses-space-inside": ["never"],
"selector-list-comma-newline-after": null,
"selector-list-comma-newline-before": null,
"selector-list-comma-space-after": null,
"selector-list-comma-space-before": null,
"media-feature-colon-space-after": ["always"],
"media-feature-colon-space-before": ["never"],
"media-feature-parentheses-space-inside": ["never"],
"media-query-list-comma-newline-after": null,
"media-query-list-comma-newline-before": null,
"media-query-list-comma-space-after": null,
"media-query-list-comma-space-before": null,
"value-keyword-case": ["lower", { "camelCaseSvgKeywords": true }],
"declaration-block-no-redundant-longhand-properties": null,
"at-rule-empty-line-before": null,
"at-rule-name-newline-after": null,
"at-rule-name-space-after": ["always"],
"at-rule-semicolon-newline-after": null,
"at-rule-semicolon-space-before": ["never"],
"max-empty-lines": null,
"no-eol-whitespace": null,
"no-missing-end-of-source-newline": null,
"no-empty-first-line": null,
"unicode-bom": null,
"rule-empty-line-before": null,
"color-hex-case": null,
"unit-case": null,
"property-case": null,
"selector-pseudo-class-case": null,
"selector-pseudo-element-case": null,
"selector-max-empty-lines": null,
"media-feature-name-case": null,
"at-rule-name-case": null,
"string-quotes": null,
"property-no-vendor-prefix": null,
"value-keyword-case": ["lower", { "camelCaseSvgKeywords": true }],
"declaration-block-no-redundant-longhand-properties": null
"property-no-vendor-prefix": null
}
}
4 changes: 2 additions & 2 deletions proprietary/design-tokens/src/_responsive.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

/* stylelint-disable no-duplicate-selectors */

@media (min-width: 35em) {
@media (width >= 35em) {
.utrecht-theme--media-query,
.utrecht-theme--media-query-viewport {
--utrecht-heading-1-font-size: 28px; /* 28px on tablet min-width-35e */
--utrecht-paragraph-lead-font-size: 1.25em; /* 20px on tablet min-width-35e */
}
}

@media (min-width: 60em) {
@media (width >= 60em) {
.utrecht-theme--media-query,
.utrecht-theme--media-query-viewport {
--utrecht-heading-1-font-size: 32px; /* 32px on desktop min-width-60em */
Expand Down

0 comments on commit de5892b

Please sign in to comment.