Enable Stricter TS Rules #20
Labels
enhancement
New feature or request
from_willyovale
An issue described in original project, but never implemented
good first issue
Good for newcomers
planning
Not yet ready for development
Description
To improve code quality and catch potential issues early, Fireorm should enable stricter TypeScript rules. The goal is to gradually migrate the codebase to comply with
strict: true
settings intsconfig.json
.Steps to Reproduce
tsconfig.json
.Expected Behavior
The Fireorm codebase should compile without errors under strict TypeScript rules, ensuring better type safety and code quality.
Actual Behavior
The current codebase may not compile under strict TypeScript rules due to various type-related issues.
Acceptance Criteria
strict: true
settings.Additional Context
Proposed Plan
Incremental Approach:
tsconfig.json
to enable strict rules for specific folders or files and fix the errors.Folder-by-Folder Migration:
src/Batch/
src/Errors/
src/Transaction/
src/AbstractFirestoreRepository.ts
src/BaseFirestoreRepository.ts
src/BaseRepository.ts
src/helpers.ts
src/MetadataStorage.ts
src/QueryBuilder.ts
src/utils.ts
Final Integration:
tsconfig.json
.strict: true
in the outertsconfig.json
.Example Implementation
Original Issue
The text was updated successfully, but these errors were encountered: