Skip to content

Commit

Permalink
disable some stylelint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
basher committed Nov 14, 2024
1 parent ade55af commit 099ff12
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 9 deletions.
5 changes: 4 additions & 1 deletion ui/.stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
"import-notation": "string",
"hue-degree-notation": "number",
"selector-class-pattern": null,
"value-keyword-case": null
"value-keyword-case": null,
"custom-property-pattern": null,
"declaration-block-no-redundant-longhand-properties": null,
"selector-not-notation": null
}
}
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "web-ui-boilerplate",
"description": "UI boilerplate for websites/webapps using vanilla HTML/CSS/JavaScript, powered by Storybook, bundled by Parcel.",
"author": "basher",
"version": "4.0.1",
"version": "4.0.2",
"license": "ISC",
"repository": {
"type": "git",
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/base/type.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ Font-face rules.
--base-font-size-2k: 110%; /* 2K screens */
--base-font-size-4k: 200%; /* 4K screens */
--font-size-body: var(--webui-step-0);
/* stylelint-disable-next-line custom-property-pattern */
--font-size-s: var(--webui-step--1);
--font-size-h5: var(--webui-step-1);
--font-size-h4: var(--webui-step-2);
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/components/pagination.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
'select select'
'prev next';
grid-template-columns: 1fr 1fr;
/* stylelint-disable-next-line declaration-block-no-redundant-longhand-properties */
grid-template-rows: auto auto;
}
}
Expand Down
3 changes: 1 addition & 2 deletions ui/src/css/form/form.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
padding-inline-end: var(--gutter-m);
position: relative;

/* stylelint-disable-next-line max-nesting-depth, no-descending-specificity */
/* stylelint-disable-next-line no-descending-specificity */
&::after {
color: var(--color-error-500);
content: '!';
Expand All @@ -33,7 +33,6 @@

&:has(:valid:required) {
:is(.label, .checkbox__label, .radio__label) {
/* stylelint-disable-next-line max-nesting-depth */
&::after {
color: var(--color-success-500);
content: '✓';
Expand Down
1 change: 1 addition & 0 deletions ui/src/css/global/reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -159,5 +159,6 @@ summary {
animation-iteration-count: 1 !important;
scroll-behavior: auto !important;
transition-duration: 0.01ms !important;
/* stylelint-enable declaration-no-important */
}
}
2 changes: 1 addition & 1 deletion ui/src/css/layout/grid.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
minmax(var(--grid-item-min-width), var(--grid-asymmetric-col2));
}

/* Fallback. */
/* Fallback. Uses old media query notation. */
@supports not (container-type: inline-size) {
/* stylelint-disable-next-line media-feature-range-notation */
@media (min-width: 48.0625em) {
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/tokens.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

/* Fluid type scale.
@link https://utopia.fyi/type/calculator?c=480,16,1.25,1440,20,1.333,6,1,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */
/* stylelint-disable-next-line custom-property-pattern */
--webui-step--1: clamp(0.8rem, 0.7311rem + 0.2296vw, 0.9377rem);
--webui-step-0: clamp(1rem, 0.875rem + 0.4167vw, 1.25rem);
--webui-step-1: clamp(1.25rem, 1.0419rem + 0.6938vw, 1.6663rem);
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/utilities/display.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Visually hide content but make it available to screen readers.
----------------------------------------------------------------------------
*/
.visually-hidden {
/* stylelint-disable-next-line selector-not-notation */
&:not(:focus):not(:active) {
block-size: 1px;
clip-path: inset(50%);
Expand Down

0 comments on commit 099ff12

Please sign in to comment.