Skip to content

build: enable strict mode in tsconfig - #577

Merged
ishymko merged 3 commits into
epic/1.0_breaking_changesfrom
jakubworek/enable-strict-mode
Jul 14, 2026
Merged

build: enable strict mode in tsconfig#577
ishymko merged 3 commits into
epic/1.0_breaking_changesfrom
jakubworek/enable-strict-mode

Conversation

@JakubWorek

Copy link
Copy Markdown
Contributor

Description

This PR removes betterer in favour of enabling strict mode in tsconfig for /src and base config based on previous one for other directories

Closes #182 🦕

@JakubWorek
JakubWorek requested a review from a team as a code owner July 13, 2026 13:50
@JakubWorek
JakubWorek requested a review from ishymko July 13, 2026 13:50
@github-actions

github-actions Bot commented Jul 13, 2026

Copy link
Copy Markdown

🧪 Code Coverage

⬇️ Download Full Report

No coverage changes.

Generated by coverage-comment.yml

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the betterer tool and replaces it with strict TypeScript type-checking, introducing a base TypeScript configuration (tsconfig.base.json) and a strict configuration for source files (tsconfig.src.json). The review feedback recommends swapping these configurations so that the default tsconfig.json is the strict configuration for src/ to improve IDE developer experience, while using a separate tsconfig.test.json for non-strict tests. This change also avoids redundant type-checking during linting, and the lint scripts in package.json should be updated accordingly.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread tsconfig.json
Comment thread package.json Outdated
Comment thread tsconfig.src.json Outdated

@ishymko ishymko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually agree with AI comments here, let's keep tsconfig.json strict and limit it to src and tck (as in the original betterer config, looks like tck is omitted now) and create a custom one for tests which is non-strict.

Comment thread tsconfig.test.json Outdated
@JakubWorek
JakubWorek requested a review from ishymko July 13, 2026 15:32
@ishymko ishymko changed the title feat: enable strict mode in tsconfig build: enable strict mode in tsconfig Jul 14, 2026

@ishymko ishymko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I changed PR prefix from feat to build as feat would be added into a changelog which is no-op for package consumers.

@ishymko
ishymko merged commit 37ec204 into epic/1.0_breaking_changes Jul 14, 2026
14 checks passed
@ishymko
ishymko deleted the jakubworek/enable-strict-mode branch July 14, 2026 06:31
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.

2 participants