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 --yesCustomize in the configurator
Packages it adds
| Package | Version | Type |
|---|---|---|
@nuxt/eslint | ^1.17.0 | dev |
eslint | ^10.15.0 | dev |
husky | ^9.1.7 | dev |
lint-staged | ^17.6.2 | dev |
New files
lint-staged
// @ts-check
import withNuxt from "./.nuxt/eslint.config.mjs";
export default withNuxt(
// Your custom configs here
);
Changes to existing files
<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>
⋯ 1 unchanged lines export default defineNuxtConfig({ compatibilityDate: "2025-07-15", devtools: { enabled: true },+ modules: ["@nuxt/eslint"], css: ["~/assets/css/main.css"], });
Project files
.gitignore.husky/pre-commitREADME.mdapp/app.vueapp/assets/css/main.cssapp/components/CounterCard.vueapp/pages/about.vueapp/pages/index.vueeslint.config.mjsnuxt.config.tspackage.jsonpublic/robots.txttsconfig.json