Skip to content

gijslaarman/styleguide

Repository files navigation

Gijs Laarman's Styleguide

Publish

Inspired by Vercel's styleguide: https://github.com/vercel/style-guide but less strict. For personal use, feel free to fork it.

Usage

Adding ESLint

  1. Install ESLint:
npm install eslint --save-dev

Adding Prettier

  1. Install Prettier:
npm install prettier --save-dev
  1. Add prettier to your package.json
{
  "prettier": "@gijslaarman/styleguide/prettier"
}

Adding TypeScript Configuration

  1. Create a tsconfig.json file:
{
  "extends": "@gijslaarman/styleguide/typescript/node20",
  "include": ["src/**/*"],
  "exclude": ["node_modules"]
}
  1. Install TypeScript:
npm install typescript --save-dev

Stylelint

Coming soon