prettier-plugin-erb
prettier-plugin-erb copied to clipboard
<% %> Delete
All my ruby tag <% %>
are delete or replace with <eext1 />
<eext2 />
<eext3 />
...
I don't know what i'm doing wrong
package.json:
"devDependencies": {
"@prettier/plugin-ruby": "^1.6.1",
"prettier-plugin-erb": "^0.4.0",
"prettier": "^2.3.2",
}
.prettierrc.json:
{
"[ruby]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[erb]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
}
vscode settings.json
"files.associations": {
"*.js": "javascriptreact",
"*.html.erb": "erb"
},
"emmet.includeLanguages": {
"erb": "html",
"ruby": "html",
"javascript": "javascriptreact"
},
"ruby.format": "prettier"
@adamzapasnik Any updates on this issue?
@adamzapasnik Any updates on this issue?
Nope 0 updates ...
Sorry guys, you need to use [email protected]
2.3 and above don't work currently
Sorry guys, you need to use
[email protected]
2.3 and above don't work currently
Tried with 2.2 but same problem🙁
Sorry guys, you need to use
[email protected]
2.3 and above don't work currentlyTried with 2.2 but same problem
does it affect all tags or just a few ones? @jalajcodes
Sorry guys, you need to use
[email protected]
2.3 and above don't work currentlyTried with 2.2 but same problem
does it affect all tags or just a few ones? @jalajcodes
all tags gets converted
~~I'm still seeing this issue right now w/ prettier 1.6.1~~
Never mind, using the following package versions got it working for me.
{
"devDependencies": {
"@prettier/plugin-ruby": "1.6.1",
"prettier": "2.2.1",
"prettier-plugin-erb": "^0.4.0"
}
}