Skip to content

Commit

Permalink
lint: enable PartialInstanceVariable for views
Browse files Browse the repository at this point in the history
  • Loading branch information
kjellberg committed Mar 29, 2024
1 parent fe5b978 commit f0b41e3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .erb-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ linters:
enabled: true
FinalNewline:
enabled: true
# PartialInstanceVariable:
# enabled: true
PartialInstanceVariable:
enabled: true
# DeprecatedClasses:
# enabled: true
# HardCodedString:
Expand Down
4 changes: 2 additions & 2 deletions app/views/accounts/_form.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<%= simple_form_for(@account, url: account_path, method: :patch) do |f| %>
<%= f.input :name, placeholder: @account.personal? ? "Your full name" : "Team / organization name", required: true, autofocus: true %>
<%= simple_form_for(account, url: account_path, method: :patch) do |f| %>
<%= f.input :name, placeholder: account.personal? ? "Your full name" : "Team / organization name", required: true, autofocus: true %>
<div class="mt-4 flex justify-between items-center">
<%= f.button :submit, "Save changes" %>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/accounts/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "Edit your account profile" %>
<%= render(PageLayouts::Settings::Component.new) do %>
<%= render "form" %>
<%= render "form", account: %>
<% end %>

0 comments on commit f0b41e3

Please sign in to comment.