pretty-quick
prettier-eslint
pretty-quick | prettier-eslint | |
---|---|---|
6 | 6 | |
2,173 | 3,932 | |
0.4% | 0.5% | |
6.8 | 6.2 | |
26 days ago | 1 day 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
-
help with create-react-app and eslint/prettier
Use the other one, prettier-eslint this is so that the code goes through Prettier before ESLint and not the other way around causing it to show issues that will be fixed once ESLint fixes it.
- Prettier and how to get most out of it
-
Why can't they tho?
Same, I can't stand some of prettier's opinions/style conversions and they refuse to add more options to their config file, so people literally have to make an entirely separate plugin just to deal with the issue of its config not being able to match your eslint config.
-
Setting up ESLint & Prettier in ViteJS
prettier-eslint
-
I always have a hard time configuring my projects
side note: you can use prettier-eslint (as opposed to the prettier eslint plugin) which runs prettier and then eslint --fix. that way you won't get annoyed by a shit ton red lines from eslint linting with prettier.
-
Boilerplate with React 17, Webpack 5, Tailwind 2, using babel, sass, with a hot dev server and an optimized production build
And I just ripped out my prettierrc/prettier recently, and still need some tweaking in this area, and might even add it it back. After looking at that plugin, it looks like it just DISABLES things in ESLint that Prettier handles, so you might have to add the prettier script and a .prettierrc config file. At least that is how I understand it. I was just looking at prettier's docs and saw this though - https://github.com/prettier/prettier-eslint, which seems like it might be what you are looking for.
What are some alternatives?
prettier - Prettier is an opinionated code formatter.
twin.examples - Packed with examples for different frameworks, this repo helps you get started with twin a whole lot faster.
husky - Git hooks made easy 🐶 woof!
prettier-eslint-cli - CLI for prettier-eslint
standard-version - :trophy: Automate versioning and CHANGELOG generation, with semver.org and conventionalcommits.org
react-webpack-5-tailwind-2 - React 17 Boilerplate with Webpack 6, Tailwind 2, using babel, SASS/PostCSS, HMR, dotenv and an optimized production build
commitlint - 📓 Lint commit messages
eslint-plugin-prettier - ESLint plugin for Prettier formatting
eslint-config-prettier - Turns off all rules that are unnecessary or might conflict with Prettier.
prettier-java - Prettier Java Plugin
linters - CSSSR's linting configs for Prettier and ESLint.