Comments (6)
Here are some upgrades to 2.8.0, but still failing in tests:
https://github.com/amkisko/prettier-html-templates - all the issues are visible in tests now
https://github.com/amkisko/prettier-plugin-erb - this one is more complex due to changes in prettier and at the moment in tests it always returns 0 bytes output
UPD 27.01.2024: these repositories are removed.
from prettier-plugin-erb.
@amkisko great to see this. Does it already make sense for you to share a Work-in-progress (WIP) Pull Request? Maybe in collaboration with @Juice10, who also started a similar Pull Request
from prettier-plugin-erb.
Here are some upgrades to 2.8.0, but still failing in tests: amkisko/prettier-html-templates - all the issues are visible in tests now amkisko/prettier-plugin-erb - this one is more complex due to changes in prettier and at the moment in tests it always returns 0 bytes output
Hi @amkisko – why did you delete the amkisko/prettier-html-templates fork?
Did you give up and prettier-plugin-html-erb
is the replacement?
from prettier-plugin-erb.
Issues thanks to incompatibility of prettier 2.3 and above: #97 #44 #97
from prettier-plugin-erb.
@tmaier @Juice10 you are welcome:
It seems that there are some complex problems to solve. :)
from prettier-plugin-erb.
Yes, I did, although PRs are still available, no more changes happened after publishing.
There are few better options available:
- erb-lint (which also adds support for rubocop which is very useful)
- erb-formatter
- rewriting https://github.com/ecmel/prettier-plugin-ejs to support erb, which I did not continue too
from prettier-plugin-erb.
Related Issues (20)
- Incorrect treatment of <%== %> in html.erb files
- Migrate to Prettier v3 HOT 3
- Error formatting document: RangeError: Invalid count value HOT 1
- Ruby not formatted if it opens a block
- Please consider marking this library as deprecated HOT 1
- Fails to parse an erb multiline comment with quotes inside HOT 1
- Enabling formatOnSave for VS Code HOT 5
- Should exit with non-zero status on error
- Multiline-comment lines containing a colon are indented with each formatter run HOT 2
- Weird formatting on <i> tags with ERB (e.g. used for icons) HOT 3
- Invalid erb output for long blocks HOT 2
- Issues with leading dash in embedded ruby block HOT 2
- Why add whitespace between % and # in comments? HOT 2
- Ruby expressions are getting replaced with <eext> HOT 16
- render tag <%=%> replaced with [object Object] when used in img tag HOT 16
- Support file extension .html+*.erb for rails and viewcomponent variants
- <% %> Delete HOT 7
- TypeError: formattedExpression.trim is not a function HOT 9
- Incorrect output </eext8><br/> HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prettier-plugin-erb.