Using "prettier" plugin breaks caching
See original GitHub issueeslint@4.0.0 eslint-plugin-prettier@2.6.0 grunt-eslint@20.1.0 prettier@1.11.1
.prettierrc
{
"printWidth": 120,
"parser": "flow",
"singleQuote": true
}
When we run eslint on our code archive, it takes >10sec when a lot of files were modified, but when there are no code changes it takes one or two sec to run, thanks to caching. After enabling the prettier plugin, this time increases to ~10 sec.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Prettier 2.8: improve --cache CLI option and TypeScript 4.9 ...
A new --cache-location option has been added, and a bug that saved the cache even when --write wasn't specified has been fixed.
Read more >Speeding up Prettier locally using the new –cache CLI option
How do you decide what changes to restage? My experience has been that applying formatting in the pre-commit hook breaks `git add -p`....
Read more >Enabling Prettier - Rush.js
First, add the plugin package to your autoinstaller package.json file -- if configured as above, this will be common/autoinstallers/rush-prettier/package.
Read more >What could cause eslint-plugin-prettier to report error on ...
I believe it did not break on CircleCI version 1.0 and locally because of cached node_modules which contained earlier Prettier versions ...
Read more >eslint-plugin-prettier | Yarn - Package Manager
If your desired formatting does not match Prettier's output, you should use a different tool such as prettier-eslint instead. Please read Integrating with...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
So, running
grunt eslint
without the prettier plugin takes about 3.5 sec. Enabling the plugin makes it take 45 sec the first time, and subsequent runs take 26 sec. No code changes, just enabling the plugin.Somehow, the normal logging
changes to
so, maybe something else is wrong.
This issue seems stale, feel free to create a new one with reproduction, thanks.