Our great sponsors
|3 days ago||14 days ago|
|MIT License||MIT License|
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Prettier and ESLint Automation Cheat Sheet
8 projects | dev.to | 17 Jun 2021
Working with SCSS? Check here
Any good alternative to husky in rust to enforce and write conventional commits and for pre-commit source code linting??
8 projects | /r/rust | 14 May 2023
It is not wild at all. Check out husky, the most popular tool for git hooks. The recommended way to use it is by running npx husky-init, which registers a pre-commit hook that by default runs npm test whenever you commit.
Set up linting and formatting for code and (S)CSS files in a Next.js project
6 projects | dev.to | 26 Apr 2023
Husky is the typical choice in Node.js packages for registering commands to run in Git hooks.
How to write type-safe CSS Modules
2 projects | dev.to | 26 Apr 2023
Depending on the project, you may prefer to run these scripts locally or in a server, perhaps as a part of your CI pipeline. To round out the example, we’ll describe how to run them as a Git Hook using husky:
How do you handle eslint/prettier configs across multiple repos?
9 projects | /r/typescript | 14 Apr 2023
To answer your next question: I lint and format on save, and I use Git hooks installed by Husky and executed through Lint-Staged (this tool helps ensure your Git hooks only run on modified files, etc) to ensure there are no lint or formatting errors whenever making a commit or pushing code. This is helpful for teams, as some developers tend to forget to run lint tasks, or don't have the Prettier extension installed in their IDE. If there are lint errors, the commit is rejected until fixed. YMMV - you'll need to fine-tune the strictness of this based on the team's needs.
Apity: A typed HTTP client for Svelte(Kit)
4 projects | dev.to | 12 Apr 2023
Now you have a mechanism to generate frontend types from OpenAPI spec, so backend becomes a single source of truth and you don't need to repeat a lot of code by hands. But there's still no answer on how to keep types in sync. One of the possible approaches is to use pre-commit hooks, like pre-commit or Husky.
Static Testlash: Linting va Formatting
5 projects | dev.to | 28 Mar 2023
How to create and publish a TypeScript library with ease
7 projects | dev.to | 7 Mar 2023
Uses Husky Git hooks and Lint-staged pre-commit hooks.
Increase coverage on every feature with Karma/Jest and Husky
3 projects | dev.to | 23 Feb 2023
To do that, I'm going to use husky. You just need to install it, and then create your first hook like this:
Exploring the Most Commonly Used Folder Names in Popular NPM Packages
12 projects | dev.to | 23 Feb 2023
.husky: Git hooks are custom scripts that run in response to some event (e.g. before a commit is created), and they can choose to abort that event under certain conditions. One of their main drawbacks though is that they live inside the .git folder, which means they cannot be directly versioned like the rest of the project. This folder is used by the popular Husky package that makes it possible to include Git hooks with your project and it takes care of installing them to their appropriate location so they can be detected by Git. Example from uuid.
The best Next.js starter templates
5 projects | dev.to | 15 Feb 2023
Nextal also includes Husky, Commit-lint, ESLint, and Prettier, which can help you maintain code quality and consistency. Husky can help you run scripts before committing your code and Commit-lint will help you write consistent commit messages. ESLint and Prettier will help you to maintain code quality by linting and formatting your code automatically.
What are some alternatives?
simple-git-hooks - A simple git hooks manager for small projects
standard-version - :trophy: Automate versioning and CHANGELOG generation, with semver.org and conventionalcommits.org
pretty-quick - ⚡ Get Pretty Quick
prettier - Prettier is an opinionated code formatter.
commitlint - 📓 Lint commit messages
Gatsby - The fastest frontend for the headless web. Build modern websites with React.
patch-package - Fix broken node modules instantly 🏃🏽♀️💨
semver - The semver parser for node (the one npm uses)
pre-commit - A framework for managing and maintaining multi-language pre-commit hooks.