Skip to content

deps: use typescript - #1897

Draft
shn-liqd wants to merge 11 commits into
mainfrom
so-2608-use-typescript
Draft

shn-liqd wants to merge 11 commits into
mainfrom
so-2608-use-typescript

Conversation

@shn-liqd

Copy link
Copy Markdown
Contributor

No description provided.

- add typescript, @types/* and @typescript-eslint dev dependencies
- configure babel preset-typescript for ts/tsx compilation
- add tsconfig with strict mode
- add ambient type declarations for django, jquery and other globals
- extend eslint and jest config to cover ts/tsx files
- add typecheck script, wire it into lint, CI and lint-staged
- rename js/jsx sources to ts/tsx
- add typed api layer (api/types.ts) with Comment, Poll, Rating and
  related domain interfaces
- type api endpoints with generic JQuery.jqXHR responses
- type forms (AutoComplete, useCombobox), control bar, mocks and tests
- rename jsx sources to tsx
- type Comment, CommentListResponse and payloads via shared api types
- type Comment/CommentBox components, forms and dropdown
- fix search prop typo in CommentControlBar
- type immutability-helper diff specs
- rename jsx sources to tsx
- type Poll, PollQuestion, PollChoice and answer data via shared api types
- add PollQuestionEdit/PollChoiceEdit types for the dashboard editor
- type poll voting payloads and results rendering
- fix hasHelptext state used as boolean
- type test data and snapshots
- rename jsx sources to tsx
- type RatingResponse and CreateRatingResult via shared api types
- widen authenticatedAs to accept numeric user ids
- type FollowState and report payloads
- rename js/jsx sources to ts/tsx
- type leaflet controls, marker layers and geo json handling
- type address search and geo json features
- keep loose typing where third-party libs lack declarations
- rename categories, dashboard, images and forms sources to ts/tsx
- type image uploader session storage data
- type category formset and select dropdown init
- remove duplicate n plugin config and merge overlapping ts lint blocks
- drop no-restricted-syntax template literal ban and its disable comments
- reuse shared AiReport type in the ai report component
- type comment form payload as CommentPayload
- restore React.MouseEvent typing on async comment toggle handlers
- fix invalid aria-hidden value in the ai report
- include pure .ts files in jest coverage collection
- mark legacy comments module as deprecated in source and index exports
@shn-liqd shn-liqd self-assigned this Aug 25, 2026
@shn-liqd
shn-liqd marked this pull request as draft August 25, 2026 09:05
Bump brace-expansion override to >=5.0.9, and update js-yaml and
minimatch to patched versions. Resolves 3 high-severity audit
vulnerabilities (brace-expansion DoS, js-yaml CVE-2026-59870).
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.

1 participant