loxygenK / nextjs-template

๐Ÿ–จ My Next.js template with ESLint + Prettier + TailwindCSS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐Ÿ–จ loxygenK/nextjs-template

My template for Next.js application.

๐Ÿ“ฆ Set up environments

  • Next.js
  • eslint-plugin-simple-import-sort
  • Prettier
  • TailwindCSS
  • Autoprefixer
  • Some hooks

๐Ÿช„ Scripts

Script Behavior
dev Start development server.
lint Launch linter without auto-fix. Runs ESLint and Prettier.
fix Like lint, but with auto-fix, and runs prettier first.

๐Ÿ’จ Hooks

Timing Behavior
pre-commit Runs lint-staged, and run auto-fix for ESLint and Prettier.
post-checkout Runs pnpm i to synchronize the installation.

๐Ÿ‘ฎ Action

When the pull request is opened, or synchronized (like the commits have been pushed), runs ESLint and Prettier individually with caching. This action also runs at main branch to provide cache at the first run on a newly opened PR.

๐Ÿ“ License

MIT

About

๐Ÿ–จ My Next.js template with ESLint + Prettier + TailwindCSS

License:MIT License


Languages

Language:TypeScript 40.1%Language:JavaScript 32.8%Language:CSS 19.5%Language:Shell 7.6%