Skip to content

laporeon/tsnodeplate

Repository files navigation

TSNodeplate

A minimal boilerplate to build Node.JS projects with Typescript.

Features

  • .nvmrc for Node.js version management.
  • ESLint plugins configured for code linting.
  • Prettier integration for consistent formatting.
  • Preconfigured npm scripts for development workflows.
  • Enforced conventional commit standards using Husky + commitlint.
  • Import sorting is configured and automatically applied in this order:
import 'dotenv/config'; //  Side-effect imports

import fs from 'node:fs'; // Node.js built-ins if declared if "node:" prefix

import express from 'express'; // External packages

import { env } from '@/config/env'; // Internal aliases

import parent from '../parent/index.js'; // Parent
import sibling from './sibling/index.js'; // Sibling

You can customize the order by modifying the groups array in the ESLint configuration file, see lines 27-34.

Requirements

Installing:

Yarn:

$ yarn install

NPM:

$ npm install

About

A minimal boilerplate to build Node.JS projects with Typescript.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published