ClimateTown / knowledge-hub

Your one-stop shop in the fight against climate change, containing important climate resources you wish you knew about yesterday.
https://hub.climatetownproductions.com
MIT License
35 stars 25 forks source link

[BUG] precommit-ci Prettier Svelte Dependency #349

Closed VeckoTheGecko closed 8 months ago

VeckoTheGecko commented 9 months ago

Describe the bug precommit-ci is failing since #346 with the following log:

check json...............................................................Passed
check yaml...............................................................Passed
fix end of files.........................................................Passed
trim trailing whitespace.................................................Passed
black....................................................................Passed
Validate GitHub Workflows................................................Passed
Validate GitHub Actions..............................(no files to check)Skipped
prettier.................................................................Failed
- hook id: prettier
- exit code: 1

[error] Cannot find package 'prettier-plugin-svelte' imported from /code/noop.js
[error] Cannot find package 'prettier-plugin-svelte' imported from /code/noop.js

Which is likely due to a misconfiguring of the precommit config.

Additional comments Not urgent (formatting still works locally).

VeckoTheGecko commented 8 months ago

Highly relevant issue: https://github.com/prettier/prettier/issues/15388