herb-tools.dev

TIL: Html + ERB = HERB ❤️ (opens in new tab)

Discussed on DEV

Today I was looking to improve the tooling around ERB templates in our project, get a linter at least. I started with erb_lint gem, but soon discovered the HERB project. The docs are a bit cryptic, but it's basically a gem that gives you a powerful linter a-la rubocop. gem "herb" and then bundle exec herb analyze . Check out the many rules available (and you can even write custom ones in JS!)

Read the original article
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help