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

chore(graphql): make tsconfig more strict #17909

Merged
merged 21 commits into from
Aug 27, 2021

Conversation

lmiller1990
Copy link
Contributor

@lmiller1990 lmiller1990 commented Aug 27, 2021

  • added types package
  • avoid importing from server, browser etc
  • turned on more strict options

skipLibCheck is still required, I don't think this is a big deal though.

Will cherry pick the types package back to develop once #17908 is merged.

@lmiller1990 lmiller1990 requested a review from a team as a code owner August 27, 2021 04:09
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Aug 27, 2021

Thanks for taking the time to open a PR!

@lmiller1990 lmiller1990 requested review from chrisbreiding and jennifer-shehane and removed request for a team, chrisbreiding and jennifer-shehane August 27, 2021 04:09
@@ -7,6 +7,7 @@
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
"jsx": "react", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
"skipLibCheck": true,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Need this or it complains about duplicate global types like mocha... would be nice to remove, not entirely sure how

Copy link
Member

Choose a reason for hiding this comment

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

Yep, working though this in a separate PR, there's a bunch of cruft that we have in our tsconfig & d.ts files that can be removed to help here.

@tgriesser tgriesser merged commit 49cc92a into unified-desktop-gui Aug 27, 2021
@tgriesser tgriesser deleted the chore/make-graphql-more-strict branch August 27, 2021 19:51
tgriesser added a commit that referenced this pull request Sep 1, 2021
…p-gui-gql-stitching

* unified-desktop-gui:
  fix: rename testApolloClient -> testUrqlClient, add apollo.config.js (#17948)
  feat(launchpad): detect if runner is set up and change UI accordingly (#17934)
  rebuild yarn lock
  chore: remove skipLibCheck, re-add vue-tsc, fix types (#17924)
  fix: ensure @headlessui/vue is bundled
  chore(graphql): make tsconfig more strict (#17909)
  run vite during watch
  fix: source maps while developing electron
  rebuild schema w/o JS files
  make constant more generic
  remove hanging tests
  allow larger artifacts
  comment out flaky test
  fix typing errors
  make graphql tsconfig more minimal
  chore: use `import type` syntax (#17864)
  remove browser-specific `beforeinput` checks (send in firefox) (#17820)
  fix(types): Update title method options type (#17781)
  fix(deps): update dependency @cypress/request to v2.88.6 🌟 (#17813)
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