Files
grimmory/frontend/stylelint.config.js
T
James Cox cef000d425 chore(frontend-lint): add local typecheck and stylelint commands
- Frontend package scripts:
  - add a dedicated `typecheck` script for `tsc --noEmit`
  - split ESLint into `lint:eslint` and add `lint:styles` plus `lint:styles:fix`
  - keep the top-level `lint` script as a combined frontend lint entrypoint
  - restore `postcss` so the frontend dependency graph satisfies the peer requirements used by Angular build tooling and Stylelint
- Frontend command surface:
  - add `typecheck`, `stylelint`, and `stylelint-fix` recipes to `frontend/Justfile`
  - expand the frontend `check` and `ci-check` recipes to include typechecking, stylesheet linting, and a production build
- Stylelint configuration:
  - add `frontend/stylelint.config.js` using the standard SCSS config as the base
  - pare back the noisiest formatting and notation rules so the initial lint layer stays actionable instead of forcing a repo-wide SCSS rewrite
- Lockfile:
  - refresh `frontend/yarn.lock` for the new frontend lint dependencies

- Validation:
  - `just ui install`
  - `just ui typecheck`
  - `just ui stylelint` currently reports 140 errors, with 76 marked autofixable
2026-04-22 17:26:40 -04:00

32 lines
1.0 KiB
JavaScript

module.exports = {
extends: ["stylelint-config-standard-scss"],
ignoreFiles: ["dist/**", "node_modules/**"],
rules: {
"alpha-value-notation": null,
"at-rule-empty-line-before": null,
"color-function-alias-notation": null,
"color-function-notation": null,
"color-hex-length": null,
"declaration-block-single-line-max-declarations": null,
"declaration-empty-line-before": null,
"declaration-property-value-keyword-no-deprecated": null,
"keyframes-name-pattern": null,
"media-feature-range-notation": null,
"no-descending-specificity": null,
"no-invalid-position-declaration": null,
"property-no-deprecated": null,
"property-no-vendor-prefix": null,
"rule-empty-line-before": null,
"selector-class-pattern": null,
"selector-pseudo-element-no-unknown": [
true,
{
ignorePseudoElements: ["ng-deep"],
},
],
"scss/dollar-variable-empty-line-before": null,
"scss/load-partial-extension": null,
"shorthand-property-no-redundant-values": null,
},
};