🌐
Oxidation Compiler
oxc.rs › docs › guide › usage › formatter.html
Oxfmt
Oxfmt now passes 100% of Prettier's JavaScript and TypeScript conformance tests. For any remaining formatting inconsistencies, we have reported them to the Prettier team and are collaborating to converge on expected behavior.
Discussions

Eslint / Prettier - What presets should we use?
This is a good moment to think again about our eslint and prettier configuration so it is as simple as possible. Eslint We were following eslint-airbnb in the past, but I’d like our configuration to be as simple and as standard as possible. In the past, when prettier didn’t exist, eslint ... More on community.frontity.org
🌐 community.frontity.org
0
February 27, 2019
Why use prettier if ESLint can format?
Because Prettier generally does a better job of formatting than ESLint. This is for three reasons: It's really fast, particularly in comparison to ESLint. Prettier is designed to format documents and that's it, which means it can be a lot simpler than ESLint, at least architecturally, especially as there's relatively little in the way of plugins. So if you just need to format your code quickly in one chunk, Prettier is the way to go. Prettier is already preconfigured, so it's also usually quicker to get started with. ESLint has some default formatting rules IIRC, but relatively minimal ones. To ensure every detail is formatted the same way, you need to put a lot of effort into configuring ESLint, which most people don't really want to do. Related: Conceptually, Prettier formats holistically, which is to say, it takes a whole document and applies its formatting to every single syntax node - generally, this means that you get very close to having exactly one valid output, no matter how the input file is formatted. ESLint, on the other hand, not only requires each formatting rule to be configured individually, but also applies them generally individually, so it's easier to have cases where you can get inconsistent behaviour depending on the original formatting of the file. More on reddit.com
🌐 r/node
55
88
July 27, 2022
Make a new year resolution to get rid of ESLint and Prettier for good, talk with your company to open a separate github branch across all projects
Migrating from 8.57.0 to 9.0.0 is a pain in the freaking ass Most companies will simply never migrate. I know of places that only just upgraded from like node 4 to 16. Takes 20 plugins to make everything play nicely ... It can be(I have never had huge issues) but once its set up theres rarely a reason to ever change it. Go for a modern library like biomejs that does the job of all the 25 plugins from ESLint in one super duper light and tightly wrapped package Theres no guarantee that it does what every company needs. Yeah having 50 plugins can be annoying but it also means you can tune the package to your exact needs. I personally prefer the Go style of just having the language dictate everything but that ship has sailed in the JS world for now. And did I mention the part where it is 30 times faster than ESLint and Prettier Thats only noticeable if you are formatting an entire project with tens of thousands of lines of code. Even on a large 1-2k line file ive never had prettier or eslint feel anything less than instant. Less technical debt Less code bloat True, having everything in one package with little configs does make things cleaner. Super fast performance on linting And how about less CI/CD bills? You can setup your CI to run linting on only changed files if thats a real issue. Generally linting is not the thing slowing your CI down, tests are going to be several magnitude slower. The time it takes to lint is a rounding error. I have a big personal project coming up so ill definitely check out biomejs. Its just going to be an incredibly tough sell for any company with like 10+ devs. Why change what already works, configuration that no one has had to touch in a year? More on reddit.com
🌐 r/node
10
0
December 27, 2024
How to include prettier into "new" flat eslint.js config?
Did you try this ? https://github.com/prettier/eslint-plugin-prettier?tab=readme-ov-file#configuration-new-eslintconfigjs I didn't upgrade yet to eslint 9, I dont know exactly how the new config works More on reddit.com
🌐 r/Angular2
3
0
July 23, 2024
🌐
DevDocs
devdocs.io
DevDocs API Documentation
Fast, offline, and free documentation browser for developers. Search 100+ docs in one web app: HTML, CSS, JavaScript, PHP, Ruby, Python, Go, C, C++…
🌐
Cathalmacdonnacha
cathalmacdonnacha.com › setting-up-eslint-prettier-in-vitejs
Setting up ESLint & Prettier in ViteJS
November 27, 2024 - eslint-config-prettier: An ESLint configuration which disables the formatting rules in ESLint that Prettier is going to be responsible for handling, hence avoiding any clashes. eslint-plugin-import: Tells ESLint how to resolve imports.
🌐
Next.js
nextjs.org › docs › app › api-reference › config › eslint
Configuration: ESLint | Next.js
2 weeks ago - We recommend including eslint-config-prettier in your ESLint config to make ESLint and Prettier work together.
🌐
React
react.dev › learn › editor-setup
Editor Setup – React
We recommend disabling all formatting rules in your ESLint preset using eslint-config-prettier so that ESLint is only used for catching logical mistakes.
Find elsewhere
🌐
Biome
biomejs.dev › guides › getting-started
Getting Started | Biome
Migrate from ESLint and Prettier · Learn more about how to configure Biome · Learn more about how to use and configure the formatter · Learn more about how to use and configure the linter · Get familiar with the CLI commands and options · Get familiar with the configuration options ·
🌐
Silvenon
silvenon.com › blog › integrating-and-enforcing-prettier-and-eslint
Integrating and Enforcing Prettier & ESLint
March 25, 2019 - What do ESLint and Prettier have in common? They both convert files to an AST, perform various alterations to it, and convert it back to text. This means that our files get overwritten twice, which can be a bit slow. It would be nice if we could unify these two tools into a single process. ...
🌐
Frontity
community.frontity.org › 👨‍💻 framework development › » framework design
Eslint / Prettier - What presets should we use? - » Framework Design - Frontity Community Forum
February 27, 2019 - This is a good moment to think again about our eslint and prettier configuration so it is as simple as possible. Eslint We were following eslint-airbnb in the past, but I’d like our configuration to be as simple and as standard as possible. In the past, when prettier didn’t exist, eslint ...
🌐
Ryanharris
ryanharris.dev › posts › configure-eslint-and-prettier
How to configure ESLint and Prettier to work together
eslint-config-prettier - This disables ESLint’s formatting rules and defers that concern to Prettier. eslint-plugin-prettier - Using this plugin allows ESLint to check for violations of Prettier rules and throw errors as part of its linting process.
🌐
GitHub
github.com › prettier › eslint-plugin-prettier
GitHub - prettier/eslint-plugin-prettier: ESLint plugin for Prettier formatting · GitHub
Our recommended configuration automatically enables eslint-config-prettier to disable all formatting-related ESLint rules. For legacy configuration, this plugin ships with a plugin:prettier/recommended config that sets up both eslint-plugin-prettier and eslint-config-prettier in one go.
Starred by 3.6K users
Forked by 212 users
Languages   JavaScript
🌐
npm
npmjs.com › search
eslint-plugin-prettier - npm search
``` "eslint": "^8.9", "eslint-config-prettier": "^8.3", "eslint-formatter-codeframe": "^7.32", "eslint-plugin-babel": "^5.3", "eslint-plugin-import": "^2.25", "eslint-plugin-jsx-a11y": "^6.5", "eslint-plugin-prettier": "^4.0", "eslint-plugin-react": "^7.2
🌐
Reddit
reddit.com › r/node › why use prettier if eslint can format?
r/node on Reddit: Why use prettier if ESLint can format?
July 27, 2022 -

I've heard ESLint can format but I haven't found a clear answer why it seems prettier is used instead of the ESLint formatter. Whenever I try to look it up most comments neglect to mention that ESLint can also format so it's not obvious why prettier would be needed at all.

🌐
GitHub
github.com › prettier › eslint-plugin-prettier › blob › main › README.md
eslint-plugin-prettier/README.md at main · prettier/eslint-plugin-prettier
ESLint plugin for Prettier formatting. Contribute to prettier/eslint-plugin-prettier development by creating an account on GitHub.
Author   prettier
🌐
Easy-Vibe Tutorial
datawhalechina.github.io › 首页 › tutorial
Easy-Vibe Tutorial
Learn Vibe Coding from Zero to Advanced - Master AI programming with Claude Code, Cursor, and other AI IDE tools
🌐
Reddit
reddit.com › r/learnprogramming › run the eslint-config-prettier plugin on all files...
r/learnprogramming on Reddit: Run the eslint-config-prettier plugin on all files...
April 4, 2023 - I believe it's not a question of running eslint for all files as I've downloaded this plugin and adapted the eslintrc.cjs file especially to extend with prettier.
🌐
Prettier
prettier.io › docs › integrating-with-linters
Integrating with Linters · Prettier
The downsides of those plugins are: You end up with a lot of red squiggly lines in your editor, which gets annoying. Prettier is supposed to make you forget about formatting – and not be in your face about it! They are slower than running Prettier directly. They’re yet one layer of indirection where things may break. Finally, we have tools that run prettier and then immediately lint files by running, for example, eslint --fix on them.
🌐
Josh Finnie
joshfinnie.com › blog › adding-eslint-and-prettier-to-my-blog
Adding ESLint & Prettier to My Blog | www.joshfinnie.com
December 2, 2024 - Setting up Prettier and ESLint wasn’t without challenges, but solving them was rewarding. The main issue was conflicting rules between the tools. ESLint would flag formatting issues that Prettier had already handled, creating redundant warnings. I solved this by adding the eslint-plugin-prettier/recommended package to my ESLint config.