Enable Lint/DeprecatedClassMethods
cop to avoid using deprecated methods
This commit is contained in:
parent
ee3ebc9098
commit
5df737b7e8
@ -191,6 +191,9 @@ Lint/StringConversionInInterpolation:
|
|||||||
Lint/UriEscapeUnescape:
|
Lint/UriEscapeUnescape:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
Lint/DeprecatedClassMethods:
|
||||||
|
Enabled: true
|
||||||
|
|
||||||
Style/ParenthesesAroundCondition:
|
Style/ParenthesesAroundCondition:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
APPLICATION_PACK_PATH = "app/javascript/packs/application.js"
|
APPLICATION_PACK_PATH = "app/javascript/packs/application.js"
|
||||||
|
|
||||||
if File.exists?(APPLICATION_PACK_PATH) && File.read(APPLICATION_PACK_PATH) !~ /import "actiontext"/
|
if File.exist?(APPLICATION_PACK_PATH) && File.read(APPLICATION_PACK_PATH) !~ /import "actiontext"/
|
||||||
say "Adding import to default JavaScript pack"
|
say "Adding import to default JavaScript pack"
|
||||||
append_to_file APPLICATION_PACK_PATH, <<-EOS
|
append_to_file APPLICATION_PACK_PATH, <<-EOS
|
||||||
import "actiontext"
|
import "actiontext"
|
||||||
|
Loading…
Reference in New Issue
Block a user