Lint and typecheck TypeScript #1276

Closed
NickGerleman wants to merge 2 commits from export-D45508576 into main
NickGerleman commented 2023-05-02 16:39:46 -07:00 (Migrated from github.com)

Summary:
This change starts to enlighten linting and other repo configuration to TypeScript. This was previously special-cased out of linting, and meant we were not linting everything. It is also a precondition to do real typechecking and linting our definitions with type information.

  1. Add TypeScript dependencies
  2. Configure ESLint, Babel, tsc for TypeScript
  3. Run tsc as part of linting (OSS only for now)

This is continued in another change with adding types to scripts and config files, but more importantly converting hand-written tests and test generation to TypeScript, so we get real-world usage to typecheck against for testing.

Differential Revision: D45508576

Summary: This change starts to enlighten linting and other repo configuration to TypeScript. This was previously special-cased out of linting, and meant we were not linting everything. It is also a precondition to do real typechecking and linting our definitions with type information. 1. Add TypeScript dependencies 1. Configure ESLint, Babel, tsc for TypeScript 1. Run tsc as part of linting (OSS only for now) This is continued in another change with adding types to scripts and config files, but more importantly converting hand-written tests and test generation to TypeScript, so we get real-world usage to typecheck against for testing. Differential Revision: D45508576
facebook-github-bot commented 2023-05-02 16:40:18 -07:00 (Migrated from github.com)

This pull request was exported from Phabricator. Differential Revision: D45508576

This pull request was **exported** from Phabricator. Differential Revision: [D45508576](https://www.internalfb.com/diff/D45508576)
facebook-github-bot commented 2023-05-02 16:45:16 -07:00 (Migrated from github.com)

This pull request was exported from Phabricator. Differential Revision: D45508576

This pull request was **exported** from Phabricator. Differential Revision: [D45508576](https://www.internalfb.com/diff/D45508576)
facebook-github-bot commented 2023-05-04 08:15:41 -07:00 (Migrated from github.com)

This pull request has been merged in facebook/yoga@19aed1d63e.

This pull request has been merged in facebook/yoga@19aed1d63e8ccbef462c2e65f023f6acc77dde57.

Pull request closed

Sign in to join this conversation.
No description provided.