question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using "prettier" plugin breaks caching

See original GitHub issue

eslint@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:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rhpijnackercommented, Mar 29, 2018

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

Running “eslint:target” (eslint) task no problems Done.

changes to

Running “eslint:target” (eslint) task

so, maybe something else is wrong.

0reactions
JounQincommented, Jun 27, 2022

This issue seems stale, feel free to create a new one with reproduction, thanks.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found