Skip to content

feat: add linter - #433

Open
alex-messer wants to merge 9 commits into
mainfrom
432-add-style-linter
Open

feat: add linter#433
alex-messer wants to merge 9 commits into
mainfrom
432-add-style-linter

Conversation

@alex-messer

Copy link
Copy Markdown

#432

  • move all Style files from Less to Sass
  • add Pre-Commit Hoockst with Linter

@alex-messer alex-messer linked an issue Nov 8, 2024 that may be closed by this pull request
@alex-messer alex-messer changed the title feat: add linter WIP: feat: add linter Nov 8, 2024
@alex-messer alex-messer changed the title WIP: feat: add linter Draft feat: add linter Nov 8, 2024
@alex-messer alex-messer self-assigned this Nov 8, 2024
@alex-messer
alex-messer marked this pull request as draft November 8, 2024 16:28
@alex-messer alex-messer changed the title Draft feat: add linter feat: add linter Nov 8, 2024
@alex-messer
alex-messer marked this pull request as ready for review November 12, 2024 16:55
@alex-messer
alex-messer marked this pull request as draft November 12, 2024 16:55
@ewoerner
ewoerner force-pushed the main branch 5 times, most recently from 8faee5a to 2c306ad Compare February 17, 2026 22:11
KirDE added 4 commits August 23, 2026 23:12
…gration

Brings the branch up to date with ~21 months of main (React Router v7,
ESLint 9, Vite 8, map component refactor, etc.) and resolves the resulting
conflicts:

- Restore antd's Less-based theming (App.less + vite less options), which
  the branch had replaced with precompiled antd CSS, losing main's
  primary-color/dark-background/card padding overrides.
- Reconcile package.json: keep main's dependency versions, keep the
  branch's husky/lint-staged/stylelint tooling, drop dead deps
  (redux-thunk, sass-migrator, simple-git-hooks).
- Port main's post-divergence style changes (new CSS custom properties,
  color-mix() fixes, banner-card/banner-info-with-map tweaks) into their
  SCSS equivalents.
- Rewrite UserBannerList.tsx from the class-based Redux component (which
  main had reintroduced via an earlier bad merge) to the modern
  functional/InfiniteBannerList pattern already used by Agent/Events.

Also closes gaps left by the original Less->Sass conversion, found by
diffing compiled CSS output against main's Less build:
- .positive-action-button and .search-mission-list rules were dropped
  entirely (turned into an unreferenced mixin / omitted), breaking several
  buttons and the create-banner mission search layout.
- override/_leaflet_override.scss existed but was never @use'd.
- The pre-commit hook now actually runs lint-staged (it previously ran
  unstaged whole-project lint/stylelint commands). Fixed lint-staged's
  wiring so it invokes the CLIs directly instead of npm scripts that
  hardcoded their own file lists via bash-only syntax, which broke on
  Windows and double-appended files.
- Added .stylelintignore for dist/ so a local build doesn't get linted.
- Added tsconfig.node.json to eslint's project list so vite.config.ts
  resolves under lint-staged.
- Fixed the stylelint violations left across files main touched after the
  branch diverged (property order, !important annotations, BEM/camelCase
  class names, duplicate keyframes, missing generic font-family) so
  `npm run stylelint` passes repo-wide.
Vite 8's SassPreprocessorOptions maps directly onto sass/sass-embedded's
own StringOptions type, which has no api field now that the modern
compiler API is the only one - api: 'modern-compiler' no longer exists
on the type and failed tsc -p tsconfig.node.json.
…sion

Found by diffing compiled CSS declarations against main's Less build,
selector by selector:

- BannerList.scss: .banner-list-entry lost its base width: 360px (only
  kept inside a mobile media query), so cards on the start page sized
  themselves off content instead of a fixed 360px column, making the
  3-per-row grid wrap unpredictably to 2. Also restored the missing
  296px width at the <=321px breakpoint.
- _ant-override.scss: `body` was dropped from both grouped selectors,
  so the page background/font-size overrides no longer applied to the
  body element itself.
- BannerCard.scss: .offline-overlay-line used rgba(var(--color-black), 0.7),
  which is invalid CSS (rgba() doesn't accept a single color argument),
  so the background silently failed to apply; switched to color-mix().
  Also restored !important on .modal-image/.close-button rules needed to
  override antd's own modal styles.
- CreateBanner.scss: restored !important on .ant-radio-group label's
  color, needed to override antd's radio button text color.
- Ensure map view state aligns with URL on navigation events (e.g., back/forward navigation) in `BannersMap`.
- Introduce `syncViewFromLocation` and reconcile URL-driven banner selection in `MapOverview`.
- Improve history state management with `lastAppliedSearch` tracking.
- Allow `withRouter` to listen to the global router for unmount-triggered navigation events.
- Refactor and centralize router instance handling.
- Optimize `onPlaceSelected` in `Browser` to concurrently fetch children and banners.
@KirDE
KirDE marked this pull request as ready for review August 24, 2026 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add Style Linter

2 participants