Skip to content

jfxio/node-template

Repository files navigation

Typescript Node.js Template

An example Typescript / Node.js project that uses eslint for linting, Prettier for formatting, and Jasmine for testing. The Typescript produces modules. See also txs.

Install Node.js

These steps aren’t necessary, but show how the package.json was created.

echo 22.13 > .nvmrc && nvm use 22.13
npm install --save-dev typescript tsx @types/node globals
npx tsc --init
npm install --save-dev eslint @eslint/js typescript-eslint @ianvs/prettier-plugin-sort-imports
npm install --save-dev --save-exact prettier
npm install --save-dev eslint-config-prettier @types/eslint-config-prettier
npm install --save-dev jasmine @types/jasmine eslint-plugin-jasmine
npm install --save-dev eslint-plugin-tsdoc

Configuration

Review these settings.

  • .gitignore

  • package.json

  • tsconfig.json

  • .eslint.config.js

  • .prettierignore

  • spec/support/jasmine.js

  • .vscode/*

  • .vscode/settings editor.rulers should match package.json prettier.printWidth

  • package.json license should match contes of LICENSE.adoc

VSCode extensions

  • AsciiDoc asciidoctor

  • ESLint Microsoft

  • ?JSDocGenerator Crystal Spider

  • Prettier Prettier

  • Spell Right Bartosz Antosik

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published