[wp-trac] [WordPress Trac] #64662: Add TypeScript static analysis for core JavaScript files
WordPress Trac
noreply at wordpress.org
Tue Feb 17 21:54:36 UTC 2026
#64662: Add TypeScript static analysis for core JavaScript files
------------------------------+------------------------------
Reporter: westonruter | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: | Focuses: javascript
------------------------------+------------------------------
Description changed by westonruter:
Old description:
> For #64661, a [https://github.com/WordPress/wordpress-develop/pull/10900
> PR] is proposed which adds TypeScript checking for the scripts related to
> the CodeMirror code editor integrations. With that in place, core should
> start expanding the scope of which JS files are checked to ensure code
> quality and fix subtle bugs. The same is being done for PHP with PHPStan
> in #61175.
>
> Note that TypeScript is already being used in Gutenberg. See
> https://make.wordpress.org/core/2021/03/18/proposal-native-typescript-
> support-in-gutenberg/
New description:
For #64661, a [https://github.com/WordPress/wordpress-develop/pull/10900
PR] is proposed which adds TypeScript checking for the scripts related to
the CodeMirror code editor integrations. With that in place, core should
start expanding the scope of which JS files are checked to ensure code
quality and fix subtle bugs. The same is being done for PHP with PHPStan
in #61175.
Note that TypeScript is already being used in Gutenberg. See
https://make.wordpress.org/core/2021/03/18/proposal-native-typescript-
support-in-gutenberg/
To do:
1. Commit https://github.com/WordPress/wordpress-develop/pull/10900
2. Add `typecheck:js` to the `precommit` Grunt task.
3. Add GHA workflow which runs `typecheck:js`
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64662#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list