From fd02b6f6f7fa517a44b6cd395fbe4651ea074952 Mon Sep 17 00:00:00 2001 From: Didier Lafforgue Date: Fri, 8 Mar 2024 22:46:04 +0100 Subject: [PATCH] chore: lint code --- app/helpers/maglev/application_helper.rb | 3 ++- app/models/maglev/site/locales_concern.rb | 2 +- maglevcms.gemspec | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/helpers/maglev/application_helper.rb b/app/helpers/maglev/application_helper.rb index 3016fe0..5a39b1d 100644 --- a/app/helpers/maglev/application_helper.rb +++ b/app/helpers/maglev/application_helper.rb @@ -17,7 +17,8 @@ def maglev_live_preview_client_javascript_tag entries = maglev_asset_manifest.resolve_entries(*%w[live-preview-rails-client], type: :javascript) - javascript_include_tag(*entries.fetch(:scripts).flatten.uniq, crossorigin: 'anonymous', type: 'module', defer: true) + javascript_include_tag(*entries.fetch(:scripts).flatten.uniq, crossorigin: 'anonymous', type: 'module', + defer: true) end def maglev_asset_manifest diff --git a/app/models/maglev/site/locales_concern.rb b/app/models/maglev/site/locales_concern.rb index da572a4..6db9f0f 100644 --- a/app/models/maglev/site/locales_concern.rb +++ b/app/models/maglev/site/locales_concern.rb @@ -6,7 +6,7 @@ module Maglev::Site::LocalesConcern included do ## serializers ## - if Rails::VERSION::MAJOR >= 7 && Rails::VERSION::MINOR > 0 + if Rails::VERSION::MAJOR >= 7 && Rails::VERSION::MINOR.positive? serialize :locales, coder: LocalesSerializer else serialize :locales, LocalesSerializer diff --git a/maglevcms.gemspec b/maglevcms.gemspec index 7add13a..f7ad61f 100644 --- a/maglevcms.gemspec +++ b/maglevcms.gemspec @@ -31,7 +31,7 @@ Gem::Specification.new do |spec| spec.files = Dir[ '.babelrc', - '.eslintrc.js', + '.eslintrc.js', '{app,config,db,lib}/**/*', 'bin/vite', 'package.json',