Skip to content

Commit

Permalink
feat: change auto-correct to autocorrect in rubocop (forem#18327)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ridhwana authored Aug 12, 2022
1 parent a1e41da commit ef3389b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand All @@ -13,21 +13,21 @@ 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': [
'prettier --write',
'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',
],
};

0 comments on commit ef3389b

Please sign in to comment.