Avoid TypeScript errors in your project by using the TypeScript compiler

This page summarizes the projects mentioned and recommended in the original post on dev.to

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • lint-staged

    🚫💩 — Run linters on git staged files

  • One thing I like to do is to configure my typecheck command with lint-staged and husky on pre-commit along with my tests and eslint verification.

  • TypeScript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • 💡 Notice: The reason why I'm not executing my npm run typecheck inside lint-staged is that, since lint-staged only runs staged files and passes the current file being checked by argument to the command being executed, we can't have a reference to the tsconfig.json file (with the --project flag) and a source file to check in the same command. If you do, you'll get a TS5042: Option 'project' cannot be mixed with source files on a command line. error. Passing npm run typecheck in the husky pre-commit hook separated from lint-staged will typecheck the entire project, and not just the staged files. It's not perfect, but it works! There's an issue in the official TypeScript repository about this, in case you want to take a look.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • husky

    Git hooks made easy 🐶 woof!

  • One thing I like to do is to configure my typecheck command with lint-staged and husky on pre-commit along with my tests and eslint verification.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • solidity-template: a modern Solidity contract template utilizing Foundry and Hardhat

    7 projects | /r/ethdev | 29 Oct 2022
  • Supercharge your workflow with Husky, Lint Staged and Commitlint

    2 projects | dev.to | 7 May 2024
  • Git Project Configuration With Husky and ESLint

    6 projects | dev.to | 8 Apr 2024
  • How to scrape Amazon products

    4 projects | dev.to | 1 Apr 2024
  • How Automation Saved Me from Oops Moments: Never Skip Tests in Production Again!

    2 projects | dev.to | 6 Feb 2024