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 e2357e2 commit ade55af
Show file tree
Hide file tree
Showing 34 changed files with 5 additions and 37 deletions.
4 changes: 3 additions & 1 deletion ui/.stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
}
],
"import-notation": "string",
"hue-degree-notation": "number"
"hue-degree-notation": "number",
"selector-class-pattern": null,
"value-keyword-case": null
}
}
4 changes: 2 additions & 2 deletions ui/npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion ui/src/css/components/accordion.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
.accordion__details {
overflow: hidden;

Expand Down
1 change: 0 additions & 1 deletion ui/src/css/components/ajax.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
.ajax__error {
color: var(--color-error-500);
}
1 change: 0 additions & 1 deletion ui/src/css/components/banner.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
.banner {
--banner-gap: var(--gutter-m);

Expand Down
1 change: 0 additions & 1 deletion ui/src/css/components/breadcrumb.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
.breadcrumb {
[aria-current] {
color: var(--color-primary-500);
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/components/button.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
.button {
background: transparent;
color: inherit;
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/components/card.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
.card {
--card-gap: var(--gutter-m);
--content-min-width: 50%;
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/components/carousel.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
.carousel {
--slide-min-width: 18.75rem;
--slide-gap: var(--gutter-m);
Expand Down
2 changes: 0 additions & 2 deletions ui/src/css/components/nav.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* stylelint-disable selector-class-pattern */

.nav {
[aria-current] {
color: var(--color-primary-500);
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/components/pagination.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
.pagination {
display: flex;
flex-wrap: wrap;
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/components/responsive-media.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
.responsive-media__item {
aspect-ratio: var(--media-aspect-ratio);
block-size: auto;
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/components/search.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
.search {
.form {
flex-wrap: wrap;
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/components/skiplinks.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
.skiplinks {
position: absolute;
}
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/form/checkbox.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
.checkbox {
align-items: center;
display: flex;
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/form/form.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
.form {
display: flex;
flex-direction: column;
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/form/label.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
.label {
display: block;
}
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/form/radio.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
.radio {
align-items: center;
display: flex;
Expand Down
2 changes: 0 additions & 2 deletions ui/src/css/global/icon.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/* stylelint-disable selector-class-pattern */
.icon {
aspect-ratio: 1;
block-size: 1em; /* Scale icon to match font-size of parent element */
/* stylelint-disable-next-line value-keyword-case */
fill: currentColor;
}

Expand Down
1 change: 0 additions & 1 deletion ui/src/css/global/typography.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
/*
----------------------------------------------------------------------------
Element styles.
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/layout/flex.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
.flex {
--flex-gap: var(--gutter-m);

Expand Down
1 change: 0 additions & 1 deletion ui/src/css/layout/grid.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
[class*='grid'] {
--grid-auto-layout: auto-fit;
--grid-gap: var(--gutter-m);
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/layout/page.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
.page {
display: grid;
grid-template-rows: auto 1fr auto;
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/layout/stack.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
/*
----------------------------------------------------------------------------
Stack.
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/layout/wrapper.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
.wrapper {
--wrapper-max-width: 64rem;

Expand Down
1 change: 0 additions & 1 deletion ui/src/css/tokens.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable value-keyword-case */
/*
----------------------------------------------------------------------------
"Primitive" design tokens for dynamic theming.
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/utilities/layout.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
/*
----------------------------------------------------------------------------
Center content.
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/web-components/webui-ajax-loader.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ webui-ajax-loader {
&::part(svg) {
animation: 1.2s ease-in-out infinite both svg-animation;
fill: transparent;
/* stylelint-disable-next-line value-keyword-case */
stroke: currentColor;
stroke-dasharray: 300;
stroke-dashoffset: 75;
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/web-components/webui-carousel.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
webui-carousel {
.carousel__slide {
filter: grayscale(60%);
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/web-components/webui-image-gallery.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
webui-image-gallery {
[data-open] {
display: block;
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/web-components/webui-modal.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
/* Cannot use existing CSS variables defined on :root element for ::backdrop. See https://stackoverflow.com/questions/58818299/css-variables-not-working-in-dialogbackdrop */
::backdrop {
--color-backdrop: hsl(0 0% 0% / 70%);
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/web-components/webui-predictive-search.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
webui-predictive-search {
&:defined {
[type='submit'] {
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/web-components/webui-toggle.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
webui-toggle {
&:not(:defined) {
display: none;
Expand Down
1 change: 0 additions & 1 deletion ui/src/css/web-components/webui-video-player.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable selector-class-pattern */
webui-video-player {
[data-open] {
display: grid;
Expand Down

0 comments on commit ade55af

Please sign in to comment.