Skip to content

Commit

Permalink
Change default partial_only to true, fix dependency loading issue
Browse files Browse the repository at this point in the history
  • Loading branch information
emilong committed Jun 17, 2024
1 parent ea1829d commit 40eb3e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/erb_lint/linters/instance_variable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class InstanceVariable < Linter
include LinterRegistry

class ConfigSchema < LinterConfig
property :partials_only, accepts: [true, false], default: false, reader: :partials_only?
property :partials_only, accepts: [true, false], default: true, reader: :partials_only?
end
self.config_schema = ConfigSchema

Expand Down
2 changes: 2 additions & 0 deletions lib/erb_lint/linters/partial_instance_variable.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require_relative "instance_variable"

module ERBLint
module Linters
# Checks for instance variables in partials only
Expand Down

0 comments on commit 40eb3e4

Please sign in to comment.