Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEI-4957.3: Add tsconfig.json and library type definitions #524

Merged
merged 3 commits into from
Feb 16, 2023

Conversation

kevinbarabash
Copy link
Contributor

Summary:

Before we can run the script to convert Flow to TypeScript, we need to have a tsconfig.json in place along with type definitions for as many of the third-party libraries that we're using as possible. The next PR will contain the migrated files.

Issue: FEI-4957

Test plan:

  • let CI run

@kevinbarabash kevinbarabash self-assigned this Feb 13, 2023
@changeset-bot
Copy link

changeset-bot bot commented Feb 13, 2023

🦋 Changeset detected

Latest commit: 055ad4a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@khan-actions-bot khan-actions-bot requested a review from a team February 13, 2023 22:13
@khan-actions-bot
Copy link
Contributor

khan-actions-bot commented Feb 13, 2023

Gerald

Required Reviewers
  • @Khan/frontend-infra for changes to package.json, tsconfig.json, yarn.lock, .changeset/proud-mugs-applaud.md

Don't want to be involved in this pull request? Comment #removeme and we won't notify you of further changes.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2023

Size Change: 0 B

Total Size: 4.36 kB

ℹ️ View Unchanged
Filename Size
packages/wonder-stuff-core/dist/es/index.browser.js 1.72 kB
packages/wonder-stuff-sentry/dist/es/index.browser.js 1.66 kB
packages/wonder-stuff-testing/dist/es/index.browser.js 976 B

compressed-size-action

@codecov
Copy link

codecov bot commented Feb 13, 2023

Codecov Report

Merging #524 (de6491e) into main (9591146) will not change coverage.
The diff coverage is 100.00%.

❗ Current head de6491e differs from pull request most recent head 055ad4a. Consider uploading reports for the commit 055ad4a to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #524   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           59        59           
  Lines          840       840           
  Branches       231       224    -7     
=========================================
  Hits           840       840           
Impacted Files Coverage Δ
...uff-server-google/src/add-app-engine-middleware.js 100.00% <ø> (ø)
...nder-stuff-server-google/src/setup-integrations.js 100.00% <ø> (ø)
...s/wonder-stuff-server/src/get-logging-transport.js 100.00% <100.00%> (ø)
...ckages/wonder-stuff-server/src/get-runtime-mode.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9591146...055ad4a. Read the comment docs.

@@ -59,6 +64,7 @@
"rollup-plugin-filesize": "^9.1.2",
"rollup-plugin-preserve-shebangs": "^0.2.0",
"rollup-plugin-terser": "^7.0.2",
"typescript": "^4.9.5",
Copy link
Member

Choose a reason for hiding this comment

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

wooohoo!

Copy link
Member

@somewhatabstract somewhatabstract left a comment

Choose a reason for hiding this comment

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

Some questions inline that I think need addressing (either with a change or at least a response to clarify things). Otherwise, it's exciting progress! 🎉

@@ -71,6 +77,7 @@
"clean": "rm -rf packages/wonder-stuff-*/dist && rm -rf packages/wonder-stuff-*/node_modules",
"coverage": "yarn run jest --coverage",
"flow:ci": "flow check --max-workers 0",
"format": "prettier --write .",
Copy link
Member

Choose a reason for hiding this comment

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

question: Why was this needed? Does this mean eslint will no longer apply prettier formatting in its autofixes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I forgot that I could've used eslint --fix to the formatting. 🙃

"compilerOptions": {
/* Visit https://aka.ms/tsconfig to read more about this file */

/* Projects */
Copy link
Member

Choose a reason for hiding this comment

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

question: Long term, do we need all these commented out things? From the perspective of a future maintainer, it's not clear to me if these are temporarily omitted things that used to be there or just helpful documentation - especially since they have values associated to them. Should we delete the commented out bits now and rely on the doc link for more info?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Probably not. I ended up removing these in #528. I'll re-add the link to https://aka.ms/tsconfig in that PR.

Base automatically changed from fei-4957.2 to main February 16, 2023 16:40
@kevinbarabash kevinbarabash merged commit 929e14b into main Feb 16, 2023
@kevinbarabash kevinbarabash deleted the fei-4957.3 branch February 16, 2023 16:46
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.

5 participants