diff --git a/.erb_lint.yml b/.erb_lint.yml new file mode 100644 index 0000000000..38a4938bd4 --- /dev/null +++ b/.erb_lint.yml @@ -0,0 +1,68 @@ +--- +# ERB Lint — fills the gap RuboCop leaves: RuboCop only parses .rb, so nothing +# checked the Ruby inside <% %> tags or our ERB/HTML conventions. Follows the +# gem's recommended setup (https://github.com/Shopify/erb_lint): default linters +# stay on, and the Rubocop linter inherits our .rubocop.yml so the Ruby in tags +# is held to the same omakase style as our .rb files — no rules duplicated here. +EnableDefaultLinters: true +# --lint-all globs every *.html.erb under the repo. In CI, `bundler-cache` +# installs gems into vendor/bundle, so without this exclude erb_lint would lint +# third-party gem templates. (RuboCop excludes vendor by default; erb_lint does +# not.) Paths are matched from the repo root. +exclude: + - vendor/**/* + - node_modules/**/* + - tmp/**/* +linters: + # Adding an autocomplete token to each input is a per-field autofill/UX + # decision, not a mechanical fix, so enforcing it across the existing forms is + # out of scope here. Left off deliberately; could be revisited on its own. + RequireInputAutocomplete: + enabled: false + # \ No newline at end of file + diff --git a/app/views/layouts/action_text/contents/_content.html.erb b/app/views/layouts/action_text/contents/_content.html.erb index e6a7b6310d..b379ea31f2 100644 --- a/app/views/layouts/action_text/contents/_content.html.erb +++ b/app/views/layouts/action_text/contents/_content.html.erb @@ -6,7 +6,6 @@ [&_td]:align-top [&_th]:align-top " data-controller="print-options" - data-print-options-images-value="true" -> + data-print-options-images-value="true"> <%= yield %> diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 61419b6bbd..297a1fd61f 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -47,9 +47,9 @@