Skip to content

Commit

Permalink
chore: lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
did committed Mar 8, 2024
1 parent 30bf9ba commit fd02b6f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/helpers/maglev/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/models/maglev/site/locales_concern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion maglevcms.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit fd02b6f

Please sign in to comment.