Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Document rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed Jan 3, 2021
1 parent 37b3446 commit 3baa60e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ Or, they can be passed to `prettier` as arguments:
prettier --ruby-single-quote false --write '**/*.rb'
```

## Use with RuboCop
### Usage with RuboCop

RuboCop and Prettier for Ruby serve different purposes, but there is overlap
with some of RuboCop's functionality.
Expand Down
23 changes: 17 additions & 6 deletions rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
# Disabling all Layout/* rules, as they're unnecessary when the user is using
# prettier to handle all of the formatting.

Layout:
Enabled: false

Style/MultilineIfModifier: # clashes with rubyModifier
# Disabling all of the following options because they could conflict with a
# prettier configuration setting.

Style/MultilineIfModifier: # rubyModifier
Enabled: false
Style/SymbolArray: # clashes with rubyArrayLiteral

Style/SymbolArray: # rubyArrayLiteral
Enabled: false
Style/WordArray: # clashes with rubyArrayLiteral

Style/WordArray: # rubyArrayLiteral
Enabled: false
Style/TrailingCommaInArguments: # clashes with trailingComma

Style/TrailingCommaInArguments: # trailingComma
Enabled: false
Style/TrailingCommaInArrayLiteral: # clashes with trailingComma

Style/TrailingCommaInArrayLiteral: # trailingComma
Enabled: false
Style/TrailingCommaInHashLiteral: # clashes with trailingComma

Style/TrailingCommaInHashLiteral: # trailingComma
Enabled: false

0 comments on commit 3baa60e

Please sign in to comment.