pickstack

Nuxt + Husky + lint-staged

Git pre-commit hook that lints and formats staged files. This page shows exactly what pickstack adds to a Nuxt project for Husky + lint-staged: the packages, the new files and the changes to existing ones. Every combination is installed, built, linted and tested in CI.

$ npm create pickstack@latest my-app -- --framework nuxt --modules eslint,husky-lint-staged --yes
Customize in the configurator

Packages it adds

PackageVersionType
@nuxt/eslint^1.17.0dev
eslint^10.15.0dev
husky^9.1.7dev
lint-staged^17.6.2dev

New files

.husky/pre-commit
lint-staged
eslint.config.mjs
// @ts-check
import withNuxt from "./.nuxt/eslint.config.mjs";

export default withNuxt(
  // Your custom configs here
);

Changes to existing files

app/pages/about.vue (changed)
 <template>   <section class="page">     <h1 class="title">About</h1>+    <p class="text">+      Built with Nuxt 4, Vue 3, TypeScript, ESLint, Husky, lint-staged.+    </p>−    <p class="text">Built with Nuxt 4, Vue 3, TypeScript.</p>   </section> </template>  
nuxt.config.ts (changed)
⋯ 1 unchanged lines export default defineNuxtConfig({   compatibilityDate: "2025-07-15",   devtools: { enabled: true },+  modules: ["@nuxt/eslint"],   css: ["~/assets/css/main.css"], });  

Project files

Related templates