prettier 3.1.0 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/package.json +1 -1
  4. data/rubocop.yml +27 -7
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f4a11b3b694651795ea82803d2b9efaafc70bc811409eeba50a76d48aff55bd
4
- data.tar.gz: '0039c5cd3d89db3dbff1e0b5c4cfb2f307838f77faec7c6a9c3d23781f22bb4a'
3
+ metadata.gz: 967c98f2226d3ae025e0fe136f8cddd80115480baaa375a4906a8b7729cf5549
4
+ data.tar.gz: 31c55db39cdeb5e423ddd89d5000217d7dd226ada3a854e6a36b5ddf0274b807
5
5
  SHA512:
6
- metadata.gz: 73dfee52bf2aaa09c15c6dc23f167ecf20ef983b368a0bac4ad3fb8d193044bb4109469a0eae06c93909ee0a5aef6e926035c083efe4fec9c696a2286efe3470
7
- data.tar.gz: 02bded0e2c06e9153a16391671886f695f433c0a035b00116dc9e4fdae01a309b66d8f9147431491e81979e135c1abe6e796bf5e4c0005ebd00579d85ca9df0c
6
+ metadata.gz: 4411eeaefa1cc33f118a6f4660801cd1da8341f1954e8993a9b5e20f5c3a148b220899bde756fa359080f393b567d5312cb0774571b9ec859af0d1cba1a9e2da
7
+ data.tar.gz: fda90238c9d58046c394ba09b11671ba0d617efff319a21077638ac86ed18f2cd2bfbf81192e92f0b0c62fd48987290276ca114202fcd5e00136512622d6ffe3
data/CHANGELOG.md CHANGED
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [3.1.1] - 2022-05-12
10
+
11
+ ### Changed
12
+
13
+ - [#1125](https://github.com/prettier/plugin-ruby/pull/1225) - kddnewton - Update the bundled rubocop config to be in sync with Syntax Tree.
14
+
9
15
  ## [3.1.0] - 2022-05-12
10
16
 
11
17
  ### Added
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prettier/plugin-ruby",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "prettier plugin for the Ruby programming language",
5
5
  "main": "src/plugin.js",
6
6
  "scripts": {
data/rubocop.yml CHANGED
@@ -1,6 +1,5 @@
1
1
  # Disabling all Layout/* rules, as they're unnecessary when the user is using
2
- # prettier to handle all of the formatting.
3
-
2
+ # Syntax Tree to handle all of the formatting.
4
3
  Layout:
5
4
  Enabled: false
6
5
 
@@ -16,6 +15,16 @@ Layout/LineLength:
16
15
  Style/MultilineIfModifier:
17
16
  Enabled: false
18
17
 
18
+ # Syntax Tree will expand empty methods to put the end keyword on the subsequent
19
+ # line to reduce git diff noise.
20
+ Style/EmptyMethod:
21
+ EnforcedStyle: expanded
22
+
23
+ # lambdas that are constructed with the lambda method call cannot be safely
24
+ # turned into lambda literals without removing a method call.
25
+ Style/Lambda:
26
+ Enabled: false
27
+
19
28
  # When method chains with multiple blocks are chained together, rubocop will let
20
29
  # them pass if they're using braces but not if they're using do and end
21
30
  # keywords. Because we will break individual blocks down to using keywords if
@@ -23,12 +32,28 @@ Style/MultilineIfModifier:
23
32
  Style/MultilineBlockChain:
24
33
  Enabled: false
25
34
 
35
+ # Syntax Tree by default uses double quotes, so changing the configuration here
36
+ # to match that.
37
+ Style/StringLiterals:
38
+ EnforcedStyle: double_quotes
39
+
40
+ Style/StringLiteralsInInterpolation:
41
+ EnforcedStyle: double_quotes
42
+
43
+ Style/QuotedSymbols:
44
+ EnforcedStyle: double_quotes
45
+
46
+ # We let users have a little more freedom with symbol and words arrays. If the
47
+ # user only has an individual item like ["value"] then we don't bother
48
+ # converting it because it ends up being just noise.
26
49
  Style/SymbolArray:
27
50
  Enabled: false
28
51
 
29
52
  Style/WordArray:
30
53
  Enabled: false
31
54
 
55
+ # We don't support trailing commas in Syntax Tree by default, so just turning
56
+ # these off for now.
32
57
  Style/TrailingCommaInArguments:
33
58
  Enabled: false
34
59
 
@@ -37,8 +62,3 @@ Style/TrailingCommaInArrayLiteral:
37
62
 
38
63
  Style/TrailingCommaInHashLiteral:
39
64
  Enabled: false
40
-
41
- # lambdas that are constructed with the lambda method call cannot be safely
42
- # turned into lambda literals without removing a method call.
43
- Style/Lambda:
44
- Enabled: false
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prettier
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Newton