pretty-quick
prettier-eslint-cli
pretty-quick | prettier-eslint-cli | |
---|---|---|
6 | 1 | |
2,172 | 531 | |
0.7% | 1.1% | |
6.8 | 5.2 | |
20 days ago | 7 months ago | |
TypeScript | JavaScript | |
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.
pretty-quick
-
npx looking first in the global cache and not local project node_modules
recently my team started facing this issue about pretty-quick not compatible with [[email protected]](mailto:[email protected]). (https://github.com/azz/pretty-quick/issues/164)
-
Setting up ESLint & Prettier in ViteJS
If you'd like, you can go a bit further and automate the linting and formatting process a bit. I like to use Husky which allows you to run your linter, tests etc. on a git commit/push etc. You can also then use pretty-quick along with husky to automatically format your code whenever you git commit, just in case someone on your team hasn't set it up in their IDE.
-
How to properly set up Prettier in less than 2 minutes
By using husky and pretty-quick, you can automatically force every developer to format all the changed files (and nothing more) every time they commit.
-
Adding Prettier to a Project
Set up commit hooks with pretty-quick and husky. First, install them as dev dependencies:
-
Awesome Dev Tools To Automate Code Tasks 🔥
In this tutorial, we will also use commitlint and pretty-quick libs to check if your commit messages meet the conventional commit format and run prettier on changed files respectively.
-
How to set Husky
So basically husky is "Git hooks made easy" and we are going to use to automatically format all of our code that is staged for our commits, so we are going to use the "pre-commit" hook to run pretty-quick a simpler way to run our prettier scripts with configuration
prettier-eslint-cli
-
Lets Talk Formatting Again
Have a look at https://github.com/prettier/prettier-eslint-cli if you haven't seen it.
What are some alternatives?
prettier - Prettier is an opinionated code formatter.
prettier-eslint - Code :arrow_right: prettier :arrow_right: eslint --fix :arrow_right: Formatted Code :sparkles:
husky - Git hooks made easy 🐶 woof!
eslint-config-prettier - Turns off all rules that are unnecessary or might conflict with Prettier.
standard-version - :trophy: Automate versioning and CHANGELOG generation, with semver.org and conventionalcommits.org
commitlint - 📓 Lint commit messages
sql-formatter - A whitespace formatter for different query languages
prettier-java - Prettier Java Plugin
react-typescript-starter - Starter for React projects using Atomic design structure with support to both JSX and TSX, using SASS/SCSS, Eslint, Prettier, TailwindcssV2 compiled with Postcss, all of this using Webpack.
MEVN-CLI - Light speed setup for MEVN(Mongo Express Vue Node) Apps
vitte - A non SSR Starter Template using Svelte, Vite, Tailwind JIT. And Routify.