Inspired by Vercel's styleguide: https://github.com/vercel/style-guide but less strict. For personal use, feel free to fork it.
- Install ESLint:
npm install eslint --save-dev
- Install Prettier:
npm install prettier --save-dev
- Add prettier to your package.json
{
"prettier": "@gijslaarman/styleguide/prettier"
}
- Create a
tsconfig.json
file:
{
"extends": "@gijslaarman/styleguide/typescript/node20",
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
- Install TypeScript:
npm install typescript --save-dev
Coming soon