Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lint-staged with prettier works very slow on wsl2 #1299

Open
gyhyfj opened this issue Jun 15, 2023 · 0 comments
Open

lint-staged with prettier works very slow on wsl2 #1299

gyhyfj opened this issue Jun 15, 2023 · 0 comments

Comments

@gyhyfj
Copy link

gyhyfj commented Jun 15, 2023

It appears that as the number of modified files increases, the execution speed of lint-staged with prettier also exponentially slows down. But the speed of exec prettier itself is normal.

/* lint-staged.config.js */
module.exports = {
  '*.{js,ts,jsx,tsx,vue,css,scss,less,html,md}': 'prettier --write',
  '*.{js,ts,jsx,tsx,vue}': 'eslint --fix',
}

lint-staged 13.2.1
nodejs 18.16.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant