prettier-eslint-cli
pretty-quick
Our great sponsors
prettier-eslint-cli | pretty-quick | |
---|---|---|
1 | 6 | |
531 | 2,172 | |
1.1% | 0.7% | |
5.2 | 6.8 | |
7 months ago | 18 days ago | |
JavaScript | TypeScript | |
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-eslint-cli
-
Lets Talk Formatting Again
Have a look at https://github.com/prettier/prettier-eslint-cli if you haven't seen it.
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
What are some alternatives?
prettier-eslint - Code :arrow_right: prettier :arrow_right: eslint --fix :arrow_right: Formatted Code :sparkles:
prettier - Prettier is an opinionated code formatter.
eslint-config-prettier - Turns off all rules that are unnecessary or might conflict with Prettier.
husky - Git hooks made easy 🐶 woof!
standard-version - :trophy: Automate versioning and CHANGELOG generation, with semver.org and conventionalcommits.org
sql-formatter - A whitespace formatter for different query languages
commitlint - 📓 Lint commit messages
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.
prettier-java - Prettier Java Plugin
vitte - A non SSR Starter Template using Svelte, Vite, Tailwind JIT. And Routify.
MEVN-CLI - Light speed setup for MEVN(Mongo Express Vue Node) Apps