Skip to content

leomotors/node-config

Repository files navigation

@leomotors/config

My personal config for node projects, include ESLint Prettier and TSConfig

Install

pnpm add -D @leomotors/config

Install peer dependencies too (auto-install-peers might not work here in some cases)

pnpm add -D @types/eslint @typescript-eslint/parser eslint-plugin-sort-destructure-keys \
  @types/node@18 eslint-config-prettier \
  eslint eslint-plugin-import \
  @typescript-eslint/eslint-plugin eslint-plugin-prettier

More peer dependencies are needed for some preset

pnpm add -D @trivago/prettier-plugin-sort-imports eslint-config-next \
  eslint-plugin-jsx-a11y eslint-plugin-react \
  eslint-plugin-react-hooks prettier-plugin-tailwindcss

Some config require extra dependencies