make lint work again + lint --fix

This commit is contained in:
Henry Jameson 2025-03-31 12:41:04 +03:00
commit 673d8490f5
17 changed files with 33 additions and 75 deletions

View file

@ -103,9 +103,10 @@
"sinon-chai": "3.7.0", "sinon-chai": "3.7.0",
"stylelint": "16.17.0", "stylelint": "16.17.0",
"stylelint-config-html": "^1.1.0", "stylelint-config-html": "^1.1.0",
"stylelint-config-recommended": "^14.0.0",
"stylelint-config-recommended-scss": "^14.0.0", "stylelint-config-recommended-scss": "^14.0.0",
"stylelint-config-recommended-vue": "^1.4.0", "stylelint-config-recommended-vue": "^1.6.0",
"stylelint-config-standard": "29.0.0", "stylelint-config-standard": "37.0.0",
"vite": "^6.1.0", "vite": "^6.1.0",
"vite-plugin-eslint2": "^5.0.3", "vite-plugin-eslint2": "^5.0.3",
"vite-plugin-stylelint": "^6.0.0", "vite-plugin-stylelint": "^6.0.0",

View file

@ -190,20 +190,15 @@ export default {
.header { .header {
grid-area: header; grid-area: header;
justify-self: center; place-self: baseline center;
align-self: baseline;
line-height: 2; line-height: 2;
} }
.invalid-container { .invalid-container {
position: absolute; position: absolute;
top: 0; inset: 0;
bottom: 0;
left: 0;
right: 0;
display: grid; display: grid;
align-items: center; place-items: center center;
justify-items: center;
background-color: rgba(100 0 0 / 50%); background-color: rgba(100 0 0 / 50%);
.alert { .alert {

View file

@ -322,10 +322,7 @@
content: ""; content: "";
display: block; display: block;
position: absolute; position: absolute;
top: calc(var(--___margin) * -1); inset: calc(var(--___margin) * -1);
bottom: calc(var(--___margin) * -1);
left: calc(var(--___margin) * -1);
right: calc(var(--___margin) * -1);
background: var(--background); background: var(--background);
backdrop-filter: var(--__panel-backdrop-filter); backdrop-filter: var(--__panel-backdrop-filter);
} }

View file

@ -29,14 +29,11 @@
// TODO: unify with other modals. // TODO: unify with other modals.
.dark-overlay { .dark-overlay {
&::before { &::before {
bottom: 0; inset: 0;
content: " "; content: " ";
display: block; display: block;
cursor: default; cursor: default;
left: 0;
position: fixed; position: fixed;
right: 0;
top: 0;
background: rgb(27 31 35 / 50%); background: rgb(27 31 35 / 50%);
z-index: 2000; z-index: 2000;
} }
@ -45,13 +42,9 @@
.dialog-container { .dialog-container {
display: grid; display: grid;
position: fixed; position: fixed;
top: 0; inset: 0;
bottom: 0;
left: 0;
right: 0;
justify-content: center; justify-content: center;
align-items: center; place-items: center center;
justify-items: center;
} }
.dialog-modal.panel { .dialog-modal.panel {
@ -98,8 +91,7 @@
#modal.-mobile { #modal.-mobile {
.dialog-container { .dialog-container {
justify-content: stretch; justify-content: stretch;
align-items: end; place-items: end stretch;
justify-items: stretch;
&.-center-mobile { &.-center-mobile {
align-items: center; align-items: center;

View file

@ -135,8 +135,7 @@
.poll-indicator-container { .poll-indicator-container {
border-radius: var(--roundness); border-radius: var(--roundness);
display: grid; display: grid;
justify-items: center; place-items: center center;
align-items: center;
align-self: start; align-self: start;
height: 0; height: 0;
padding-bottom: 62.5%; padding-bottom: 62.5%;
@ -147,13 +146,9 @@
box-sizing: border-box; box-sizing: border-box;
border: 1px solid var(--border); border: 1px solid var(--border);
position: absolute; position: absolute;
top: 0; inset: 0;
bottom: 0;
left: 0;
right: 0;
display: grid; display: grid;
justify-items: center; place-items: center center;
align-items: center;
width: 100%; width: 100%;
height: 100%; height: 100%;
} }

View file

@ -159,10 +159,7 @@
opacity: 0; opacity: 0;
pointer-events: none; pointer-events: none;
position: absolute; position: absolute;
top: 0; inset: 0;
bottom: 0;
right: 0;
left: 0;
overflow: hidden; overflow: hidden;
/* DEBUG STUFF */ /* DEBUG STUFF */

View file

@ -101,10 +101,7 @@
.gallery-row-inner { .gallery-row-inner {
position: absolute; position: absolute;
top: 0; inset: 0;
left: 0;
right: 0;
bottom: 0;
display: flex; display: flex;
flex-flow: row wrap; flex-flow: row wrap;
align-content: stretch; align-content: stretch;

View file

@ -220,8 +220,7 @@
margin-top: 3.5em; margin-top: 3.5em;
width: 100vw; width: 100vw;
height: calc(100vh - var(--navbar-height)); height: calc(100vh - var(--navbar-height));
overflow-x: hidden; overflow: hidden scroll;
overflow-y: scroll;
.notifications { .notifications {
padding: 0; padding: 0;

View file

@ -42,7 +42,7 @@
} }
} }
@media all and (min-width: 801px) { @media all and (width >= 801px) {
.new-status-button:not(.always-show) { .new-status-button:not(.always-show) {
display: none; display: none;
} }

View file

@ -41,10 +41,7 @@ export default {
.modal-view { .modal-view {
z-index: var(--ZI_modals); z-index: var(--ZI_modals);
position: fixed; position: fixed;
top: 0; inset: 0;
left: 0;
right: 0;
bottom: 0;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;

View file

@ -418,7 +418,7 @@
margin: 0.6em; margin: 0.6em;
} }
@media all and (max-width: 800px) { @media all and (width <= 800px) {
.registration-form .container { .registration-form .container {
flex-direction: column-reverse; flex-direction: column-reverse;

View file

@ -157,7 +157,7 @@
text-align: center; text-align: center;
} }
@media all and (max-width: 800px) { @media all and (width <= 800px) {
.search-nav-heading { .search-nav-heading {
.tab-switcher .tabs .tab-wrapper { .tab-switcher .tabs .tab-wrapper {
display: block; display: block;

View file

@ -241,10 +241,7 @@ export default {
.underlay-preview { .underlay-preview {
position: absolute; position: absolute;
top: 0; inset: 0 10px;
bottom: 0;
left: 10px;
right: 10px;
} }
} }
</style> </style>

View file

@ -107,8 +107,7 @@
} }
.shout-window { .shout-window {
overflow-y: auto; overflow: hidden auto;
overflow-x: hidden;
max-height: 20em; max-height: 20em;
} }

View file

@ -37,10 +37,7 @@
canvas { canvas {
position: absolute; position: absolute;
top: 0; inset: 0;
bottom: 0;
left: 0;
right: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: contain; object-fit: contain;

View file

@ -143,7 +143,7 @@
} }
} }
@media all and (min-width: 801px) { @media all and (width >= 801px) {
.panel-body { .panel-body {
flex-direction: row; flex-direction: row;
} }

View file

@ -7232,7 +7232,7 @@ stylelint-config-recommended-scss@^14.0.0:
stylelint-config-recommended "^14.0.1" stylelint-config-recommended "^14.0.1"
stylelint-scss "^6.4.0" stylelint-scss "^6.4.0"
stylelint-config-recommended-vue@^1.4.0: stylelint-config-recommended-vue@^1.6.0:
version "1.6.0" version "1.6.0"
resolved "https://registry.yarnpkg.com/stylelint-config-recommended-vue/-/stylelint-config-recommended-vue-1.6.0.tgz#e5d34d9f11417922a24dbd21438c6c058843fa20" resolved "https://registry.yarnpkg.com/stylelint-config-recommended-vue/-/stylelint-config-recommended-vue-1.6.0.tgz#e5d34d9f11417922a24dbd21438c6c058843fa20"
integrity sha512-syk1adIHvbH2T1OiR/spUK4oQy35PZIDw8Zmc7E0+eVK9Z9SK3tdMpGRT/bgGnAPpMt/WaL9K1u0tlF6xM0sMQ== integrity sha512-syk1adIHvbH2T1OiR/spUK4oQy35PZIDw8Zmc7E0+eVK9Z9SK3tdMpGRT/bgGnAPpMt/WaL9K1u0tlF6xM0sMQ==
@ -7241,27 +7241,22 @@ stylelint-config-recommended-vue@^1.4.0:
stylelint-config-html ">=1.0.0" stylelint-config-html ">=1.0.0"
stylelint-config-recommended ">=6.0.0" stylelint-config-recommended ">=6.0.0"
stylelint-config-recommended@>=6.0.0: stylelint-config-recommended@>=6.0.0, stylelint-config-recommended@^15.0.0:
version "15.0.0" version "15.0.0"
resolved "https://registry.yarnpkg.com/stylelint-config-recommended/-/stylelint-config-recommended-15.0.0.tgz#93d48db401215708b724f078533864e52085a07b" resolved "https://registry.yarnpkg.com/stylelint-config-recommended/-/stylelint-config-recommended-15.0.0.tgz#93d48db401215708b724f078533864e52085a07b"
integrity sha512-9LejMFsat7L+NXttdHdTq94byn25TD+82bzGRiV1Pgasl99pWnwipXS5DguTpp3nP1XjvLXVnEJIuYBfsRjRkA== integrity sha512-9LejMFsat7L+NXttdHdTq94byn25TD+82bzGRiV1Pgasl99pWnwipXS5DguTpp3nP1XjvLXVnEJIuYBfsRjRkA==
stylelint-config-recommended@^14.0.1: stylelint-config-recommended@^14.0.0, stylelint-config-recommended@^14.0.1:
version "14.0.1" version "14.0.1"
resolved "https://registry.yarnpkg.com/stylelint-config-recommended/-/stylelint-config-recommended-14.0.1.tgz#d25e86409aaf79ee6c6085c2c14b33c7e23c90c6" resolved "https://registry.yarnpkg.com/stylelint-config-recommended/-/stylelint-config-recommended-14.0.1.tgz#d25e86409aaf79ee6c6085c2c14b33c7e23c90c6"
integrity sha512-bLvc1WOz/14aPImu/cufKAZYfXs/A/owZfSMZ4N+16WGXLoX5lOir53M6odBxvhgmgdxCVnNySJmZKx73T93cg== integrity sha512-bLvc1WOz/14aPImu/cufKAZYfXs/A/owZfSMZ4N+16WGXLoX5lOir53M6odBxvhgmgdxCVnNySJmZKx73T93cg==
stylelint-config-recommended@^9.0.0: stylelint-config-standard@37.0.0:
version "9.0.0" version "37.0.0"
resolved "https://registry.yarnpkg.com/stylelint-config-recommended/-/stylelint-config-recommended-9.0.0.tgz#1c9e07536a8cd875405f8ecef7314916d94e7e40" resolved "https://registry.yarnpkg.com/stylelint-config-standard/-/stylelint-config-standard-37.0.0.tgz#55e75c7215d5398b096d2f75af6a16693c18532d"
integrity sha512-9YQSrJq4NvvRuTbzDsWX3rrFOzOlYBmZP+o513BJN/yfEmGSr0AxdvrWs0P/ilSpVV/wisamAHu5XSk8Rcf4CQ== integrity sha512-+6eBlbSTrOn/il2RlV0zYGQwRTkr+WtzuVSs1reaWGObxnxLpbcspCUYajVQHonVfxVw2U+h42azGhrBvcg8OA==
stylelint-config-standard@29.0.0:
version "29.0.0"
resolved "https://registry.yarnpkg.com/stylelint-config-standard/-/stylelint-config-standard-29.0.0.tgz#4cc0e0f05512a39bb8b8e97853247d3a95d66fa2"
integrity sha512-uy8tZLbfq6ZrXy4JKu3W+7lYLgRQBxYTUUB88vPgQ+ZzAxdrvcaSUW9hOMNLYBnwH+9Kkj19M2DHdZ4gKwI7tg==
dependencies: dependencies:
stylelint-config-recommended "^9.0.0" stylelint-config-recommended "^15.0.0"
stylelint-scss@^6.4.0: stylelint-scss@^6.4.0:
version "6.11.1" version "6.11.1"