Shopify / erb_lint

Lint your ERB or HTML files
MIT License
680 stars 122 forks source link

Disable linter for one line #367

Open huda-kh opened 3 months ago

huda-kh commented 3 months ago

I have this block of code:

      <%= f.input :freight_country,
                  required: true,
                  wrapper_html: { class: 'form--medium' },
                  input_html: { class: 'country-input' },
                  prompt: "Please select",
                  collection: ISO3166::Country.all.reject { |c| c.alpha2 == 'AU' },
                  value_method: lambda(&:alpha2), # erblint: disable Naming/VariableNumber
                  label_method: ->(country) { country.translations["en"] } %>

and I need to disable Naming/VariableNumber for the line before last but appending # erblint: disable Naming/VariableNumber to it is not doing it. Any ideas?