Skip to content

Commit fd56af7

Browse files
fix: move MILITARY_BASES_LAYER_IDS to layerIds.ts and harden husky hooks
Remove duplicate MILITARY_BASES_LAYER_IDS export from MilitaryBasesLayer.tsx (it already lives in layerIds.ts) to satisfy react-refresh/only-export-components. Update pre-push hook to run the full quality gate: lint → type-check → build so broken code can never reach the remote. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 435900d commit fd56af7

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

.husky/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npm run type-check && npm run test
1+
npm run lint && npm run type-check && npm run build

client/src/modules/monitor/components/MilitaryBasesLayer.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import type { ExpressionSpecification } from 'maplibre-gl';
44
import { useMilitaryBases } from '../hooks/useMilitaryBases';
55
import { useMilitaryBasesStore } from '../militaryBases.store';
66

7-
export const MILITARY_BASES_LAYER_IDS = ['military-bases-halo', 'military-bases-dot'];
8-
97
// MapLibre expression — color by category
108
const CATEGORY_COLOR: ExpressionSpecification = [
119
'match',

0 commit comments

Comments
 (0)