From ef3389b0f2565e29427edcb3407af3b858eb3753 Mon Sep 17 00:00:00 2001 From: Ridhwana Date: Fri, 12 Aug 2022 12:23:10 +0200 Subject: [PATCH] feat: change auto-correct to autocorrect in rubocop (#18327) --- .lintstagedrc.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.lintstagedrc.js b/.lintstagedrc.js index a0eb3c8eefe0f..16a0d224c66aa 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -3,7 +3,7 @@ module.exports = { '*.json': ['prettier --write'], '*.md': ['prettier --write --prose-wrap always'], '*.rake': [ - 'bundle exec rubocop --require rubocop-rspec --auto-correct --enable-pending-cops', + 'bundle exec rubocop --require rubocop-rspec --autocorrect --enable-pending-cops', ], '*.scss': ['prettier --write'], '*.svg': ['svgo --pretty'], @@ -13,7 +13,7 @@ module.exports = { 'jest --findRelatedTests --passWithNoTests', ], './Gemfile': [ - 'bundle exec rubocop --require rubocop-rspec --auto-correct --enable-pending-cops', + 'bundle exec rubocop --require rubocop-rspec --autocorrect --enable-pending-cops', ], 'app/**/*.html.erb': ['bundle exec erblint --autocorrect'], 'app/assets/config/manifest.js': [ @@ -21,13 +21,13 @@ module.exports = { 'eslint --fix -c app/assets/javascripts/.eslintrc.js', ], 'app/views/**/*.jbuilder': [ - 'bundle exec rubocop --require rubocop-rspec --auto-correct --enable-pending-cops', + 'bundle exec rubocop --require rubocop-rspec --autocorrect --enable-pending-cops', ], // 'config/locales/*': () => 'bundle exec i18n-tasks normalize', 'scripts/{release,stage_release}': [ - 'bundle exec rubocop --require rubocop-rspec --auto-correct --enable-pending-cops', + 'bundle exec rubocop --require rubocop-rspec --autocorrect --enable-pending-cops', ], '{app,spec,config,lib}/**/*.rb': [ - 'bundle exec rubocop --require rubocop-rspec --auto-correct --enable-pending-cops', + 'bundle exec rubocop --require rubocop-rspec --autocorrect --enable-pending-cops', ], };