Skip to content

laststance/prettier-husky-lint-staged-installer

Repository files navigation

Prettier Lint

prettier-husky-lint-staged-installer

Setup prettier fortmat staged files at precommit.
After installation you'll got following setting automatically and run prettier staged file when you git commit.

  • package.json
  "lint-staged": {
    "*": "prettier --ignore-unknown --write"
  }
  • .huskey/precommit
npx lint-staged

installation

Run script at your project root directory.

  • npm
npx prettier-husky-lint-staged-installer
  • pnpm
pnpm dlx prettier-husky-lint-staged-installer
  • bun
bunx prettier-husky-lint-staged-installer

LICENSE

MIT

Contributors ✨

Thanks goes to these wonderful people (emoji key):


ryota-murakami

💻 📖 ⚠️

About

Setup lint-staged + husky for prettier less than 1 min

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Contributors 4

  •  
  •  
  •  
  •