mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
Added lints for ERB templates (#609)
* Added erblint and fixed offenses * Added erblint bintstub. Included erblint into CI * Merged GitHub Actions tasks for rubocop and erblint into one * Added config for erblint. * Reverted erblint call in the CI
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<%# locals: (value: 'last_30_days') -%>
|
||||
<% options = [['7D', 'last_7_days'], ['1M', 'last_30_days'], ["1Y", "last_365_days"], ['All', 'all']] %>
|
||||
<% options = [["7D", "last_7_days"], ["1M", "last_30_days"], ["1Y", "last_365_days"], ["All", "all"]] %>
|
||||
<div data-controller="select" data-select-active-class="bg-alpha-black-50" class="relative" data-select-selected-value="<%= value %>">
|
||||
<button type="button" data-select-target="button" class="flex items-center gap-1 w-full border border-alpha-black-100 shadow-xs rounded-lg text-sm p-2 cursor-pointer">
|
||||
<span data-select-target="buttonText" class="text-gray-900 text-sm"><%= options.find { |option| option[1] == value }[0] %></span>
|
||||
|
||||
Reference in New Issue
Block a user