From d95424dd227b8aba635029d5e84db988ab6f3fb3 Mon Sep 17 00:00:00 2001 From: James Cox Date: Wed, 25 Mar 2026 18:36:04 -0500 Subject: [PATCH] style(frontend): enforce no-empty-source in scss - Stylelint: - re-enable `no-empty-source` in the frontend Stylelint config while keeping the agreed Angular and legacy Sass exceptions untouched - SCSS: - replace empty stylesheet files with explicit placeholder comments to document that those surfaces intentionally rely on shared styling - Validation: - `just ui stylelint` --- frontend/src/app/shared/components/empty/empty.component.scss | 1 + .../layout/component/layout-main/app.layout.component.scss | 1 + .../layout/component/layout-sidebar/app.sidebar.component.scss | 1 + .../theme-configurator/theme-configurator.component.scss | 1 + frontend/stylelint.config.js | 1 - 5 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/shared/components/empty/empty.component.scss b/frontend/src/app/shared/components/empty/empty.component.scss index e69de29bb..d28dea704 100644 --- a/frontend/src/app/shared/components/empty/empty.component.scss +++ b/frontend/src/app/shared/components/empty/empty.component.scss @@ -0,0 +1 @@ +/* Intentionally empty: this component relies on shared layout styles. */ diff --git a/frontend/src/app/shared/layout/component/layout-main/app.layout.component.scss b/frontend/src/app/shared/layout/component/layout-main/app.layout.component.scss index e69de29bb..231fde0a7 100644 --- a/frontend/src/app/shared/layout/component/layout-main/app.layout.component.scss +++ b/frontend/src/app/shared/layout/component/layout-main/app.layout.component.scss @@ -0,0 +1 @@ +/* Intentionally empty: layout shell styles are defined in child surfaces. */ diff --git a/frontend/src/app/shared/layout/component/layout-sidebar/app.sidebar.component.scss b/frontend/src/app/shared/layout/component/layout-sidebar/app.sidebar.component.scss index e69de29bb..4e77cc280 100644 --- a/frontend/src/app/shared/layout/component/layout-sidebar/app.sidebar.component.scss +++ b/frontend/src/app/shared/layout/component/layout-sidebar/app.sidebar.component.scss @@ -0,0 +1 @@ +/* Intentionally empty: sidebar presentation is composed from nested components. */ diff --git a/frontend/src/app/shared/layout/component/theme-configurator/theme-configurator.component.scss b/frontend/src/app/shared/layout/component/theme-configurator/theme-configurator.component.scss index e69de29bb..be3e7df33 100644 --- a/frontend/src/app/shared/layout/component/theme-configurator/theme-configurator.component.scss +++ b/frontend/src/app/shared/layout/component/theme-configurator/theme-configurator.component.scss @@ -0,0 +1 @@ +/* Intentionally empty: theme configurator uses shared PrimeNG styling hooks. */ diff --git a/frontend/stylelint.config.js b/frontend/stylelint.config.js index 9284588e7..c6e06e625 100644 --- a/frontend/stylelint.config.js +++ b/frontend/stylelint.config.js @@ -7,7 +7,6 @@ module.exports = { "declaration-property-value-keyword-no-deprecated": null, "keyframes-name-pattern": null, "no-descending-specificity": null, - "no-empty-source": null, "no-invalid-position-declaration": null, "property-no-deprecated": null, "property-no-vendor-prefix": null,