Closed selfagency closed 10 months ago
We do actually use Prettier at "runtime" - or more precisely it is referenced in packaged code: the API generation tools prettify their output.
I can't roll to Prettier 3.0.0 because in turn I am waiting on https://github.com/mjeanroy/rollup-plugin-prettier/issues/1343
One good thing is that the tools will fail elegantly if Prettier is not present, BUT I think what might work here is that I keep my own devDependency version at ^2.8.8 and update the peerDependency to >2.8.8 (i.e. > rather than ^). Then you can have 3.0.3 locally no problem and yet TinyBase will still use 2.8.8 for itself.
New release 4.1.4 looks like it works!
I'm going to close this out, assuming it's good.
working now, thanks
Describe the bug
Appreciate your work on this. Ran into a weird issue, tho: The framework I'm using requires Prettier 3 for its internal eslint formatter but for some reason your package requires Prettier 2 as a peer dependency and therefore requires me to install packages with
--legacy-peer-deps
enabled. If you're not providing a language server to provide live code formatting in this package, could you not require that as a peer dep?Thanks
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Create an Electron project using Svelte as your UI framework and add Tinybase.
Expected behavior
To not be forced to choose a linter version by my reactive store?
Screenshots or Videos
No response
Platform
Additional context
No response