refactor: move type:check to lint hook #3381
Open
+10
−12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #3248
Release notes
So the issue with slower development cycle is solved by using eslint for type check:
Description
This PR moves the TypeScript type checking from the various build-related scripts (pretest, postbuild, etc.) to a dedicated
lint
script. This helps improve the development speed by reducing the number of redundant type checks performed during the build process.Changes
type:check
command from thepretest
,build
, andpostbuild
scripts in the variouspackage.json
files.lint
script that runstsc --noEmit
to perform the TypeScript type checking.package.json
files to use the newlint
script instead of the previoustype:check
commands.Benefits
lint
script.Breaking Changes
No significant risks are identified. The changes are limited to the package.json files and do not introduce any new functionality or change the core logic of the project.
Checklist