chore(frontend-lint): tune stylelint for Angular and legacy SCSS patterns
- Stylelint configuration: - ignore Angular-specific pseudo-elements such as `::host` - stop flagging underscore-prefixed SCSS partial imports that match the existing layout partial convention - drop empty-source and precision-only checks that were adding noise without improving maintainability - Lint surface: - keep the higher-signal duplicate-selector, naming, and font-family checks in place - reduce the manual stylelint queue from 62 findings to 10 actionable errors - Validation: - `just ui stylelint` now reports 10 errors after the config update
This commit is contained in:
@@ -13,7 +13,9 @@ module.exports = {
|
|||||||
"keyframes-name-pattern": null,
|
"keyframes-name-pattern": null,
|
||||||
"media-feature-range-notation": null,
|
"media-feature-range-notation": null,
|
||||||
"no-descending-specificity": null,
|
"no-descending-specificity": null,
|
||||||
|
"no-empty-source": null,
|
||||||
"no-invalid-position-declaration": null,
|
"no-invalid-position-declaration": null,
|
||||||
|
"number-max-precision": null,
|
||||||
"property-no-deprecated": null,
|
"property-no-deprecated": null,
|
||||||
"property-no-vendor-prefix": null,
|
"property-no-vendor-prefix": null,
|
||||||
"rule-empty-line-before": null,
|
"rule-empty-line-before": null,
|
||||||
@@ -21,11 +23,12 @@ module.exports = {
|
|||||||
"selector-pseudo-element-no-unknown": [
|
"selector-pseudo-element-no-unknown": [
|
||||||
true,
|
true,
|
||||||
{
|
{
|
||||||
ignorePseudoElements: ["ng-deep"],
|
ignorePseudoElements: ["host", "ng-deep"],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
"scss/dollar-variable-empty-line-before": null,
|
"scss/dollar-variable-empty-line-before": null,
|
||||||
"scss/load-partial-extension": null,
|
"scss/load-partial-extension": null,
|
||||||
|
"scss/load-no-partial-leading-underscore": null,
|
||||||
"shorthand-property-no-redundant-values": null,
|
"shorthand-property-no-redundant-values": null,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user