Skip to content

A boilerplate project with tooling configuration for express, typescript, jest, ts-jest, eslint, typescript es-lint, prettier, husky and pretty-quick

License

Notifications You must be signed in to change notification settings

andremarcondesteixeira/template_typescript_express_jest_prettier_husky_pretty-quick

Repository files navigation

Boilerplate Nodejs with Typescript project

Prerequisites

This boilerplate uses the @tsconfig/node16-strictest/tsconfig.json base tsconfig.json file. Because of that, it expects NodeJS >= 18.

What you get:

  • Express
  • Typescript
  • Eslint with Typescript support
  • Jest with Typescript support (your test code must be written in typescript)
  • Prettier
  • Husky (formats your code before each commit using a package called "pretty-quick")
  • Pre-configured settings for debbuging in VSCode

Recommended VSCode extensions:

In Visual Studio Code, install the following extensions:

  • "EditorConfig for VS Code", from EditorConfig
  • "Prettier - Code Formatter", from Prettier
  • "ESLint", from Microsoft

Prettier config

  • Since I use VSCode, and VSCode uses double quotes when automatically importing modules, I decided to use double-quotes by default for all strings

Jest config

  • Use the .tests.ts extension for your test files
  • The test files should be written alongside the actual source code, inside __tests__ folders

About

A boilerplate project with tooling configuration for express, typescript, jest, ts-jest, eslint, typescript es-lint, prettier, husky and pretty-quick

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published