Skip to content

Backport #3250 to 5-x-stable branch #3306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ Layout/TrailingWhitespace:
Style/RedundantPercentQ:
Enabled: true

Lint/DeprecatedClassMethods:
Enabled: true

# Align `end` with the matching keyword or starting expression except for
# assignments, where it should be aligned with the LHS.
Layout/EndAlignment:
Expand Down
4 changes: 2 additions & 2 deletions lib/install/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
say "Copying .browserslistrc to app root directory"
copy_file "#{__dir__}/config/.browserslistrc", ".browserslistrc"

if Dir.exists?(Webpacker.config.source_path)
if Dir.exist?(Webpacker.config.source_path)
say "The JavaScript app source directory already exists"
else
say "Creating JavaScript app source directory"
Expand All @@ -22,7 +22,7 @@

apply "#{__dir__}/binstubs.rb"

if File.exists?(".gitignore")
if File.exist?(".gitignore")
append_to_file ".gitignore" do
"\n" +
"/public/packs\n" +
Expand Down