prettier 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +23 -1
- data/dist/haml/parser.rb +6 -0
- data/dist/parser/getInfo.js +9 -2
- data/dist/parser/server.rb +6 -2
- data/dist/rbs/parser.rb +59 -2
- data/dist/rbs/printer.js +14 -6
- data/dist/ruby/embed.js +10 -5
- data/dist/ruby/location.js +19 -0
- data/dist/ruby/nodes/alias.js +6 -5
- data/dist/ruby/nodes/aref.js +4 -6
- data/dist/ruby/nodes/args.js +29 -56
- data/dist/ruby/nodes/arrays.js +31 -35
- data/dist/ruby/nodes/assign.js +19 -23
- data/dist/ruby/nodes/blocks.js +18 -15
- data/dist/ruby/nodes/calls.js +33 -30
- data/dist/ruby/nodes/case.js +8 -8
- data/dist/ruby/nodes/class.js +13 -13
- data/dist/ruby/nodes/commands.js +36 -22
- data/dist/ruby/nodes/conditionals.js +56 -52
- data/dist/ruby/nodes/constants.js +10 -13
- data/dist/ruby/nodes/flow.js +39 -46
- data/dist/ruby/nodes/hashes.js +26 -30
- data/dist/ruby/nodes/heredocs.js +9 -9
- data/dist/ruby/nodes/hooks.js +2 -2
- data/dist/ruby/nodes/ints.js +5 -5
- data/dist/ruby/nodes/lambdas.js +7 -6
- data/dist/ruby/nodes/loops.js +26 -24
- data/dist/ruby/nodes/massign.js +22 -35
- data/dist/ruby/nodes/methods.js +20 -40
- data/dist/ruby/nodes/operators.js +26 -28
- data/dist/ruby/nodes/params.js +31 -25
- data/dist/ruby/nodes/patterns.js +34 -37
- data/dist/ruby/nodes/regexp.js +6 -6
- data/dist/ruby/nodes/rescue.js +23 -22
- data/dist/ruby/nodes/return.js +61 -36
- data/dist/ruby/nodes/statements.js +24 -25
- data/dist/ruby/nodes/strings.js +36 -34
- data/dist/ruby/nodes/super.js +6 -10
- data/dist/ruby/nodes/undef.js +19 -14
- data/dist/ruby/nodes.js +47 -21
- data/dist/ruby/parser.js +3 -2
- data/dist/ruby/parser.rb +8470 -2972
- data/dist/ruby/printer.js +9 -71
- data/dist/ruby/toProc.js +33 -35
- data/dist/types.js +5 -1
- data/dist/utils/containsAssignment.js +5 -2
- data/dist/utils/getChildNodes.js +305 -0
- data/dist/utils/inlineEnsureParens.js +1 -1
- data/dist/utils/isEmptyBodyStmt.js +1 -1
- data/dist/utils/isEmptyParams.js +12 -0
- data/dist/utils/isEmptyStmts.js +1 -1
- data/dist/utils/makeCall.js +5 -4
- data/dist/utils/printEmptyCollection.js +3 -1
- data/dist/utils/skipAssignIndent.js +6 -2
- data/dist/utils.js +5 -3
- data/lib/prettier.rb +2 -1
- data/node_modules/prettier/bin-prettier.js +48 -18924
- data/node_modules/prettier/cli.js +12335 -0
- data/node_modules/prettier/doc.js +1306 -4755
- data/node_modules/prettier/index.js +37468 -57614
- data/node_modules/prettier/package.json +3 -2
- data/node_modules/prettier/parser-angular.js +2 -66
- data/node_modules/prettier/parser-babel.js +27 -22
- data/node_modules/prettier/parser-espree.js +26 -22
- data/node_modules/prettier/parser-flow.js +26 -22
- data/node_modules/prettier/parser-glimmer.js +27 -1
- data/node_modules/prettier/parser-graphql.js +15 -1
- data/node_modules/prettier/parser-html.js +21 -117
- data/node_modules/prettier/parser-markdown.js +61 -19
- data/node_modules/prettier/parser-meriyah.js +19 -22
- data/node_modules/prettier/parser-postcss.js +76 -22
- data/node_modules/prettier/parser-typescript.js +280 -22
- data/node_modules/prettier/parser-yaml.js +150 -15
- data/node_modules/prettier/third-party.js +8660 -11030
- data/package.json +7 -7
- metadata +7 -3
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prettier/plugin-ruby",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.1.0",
|
4
4
|
"description": "prettier plugin for the Ruby programming language",
|
5
5
|
"main": "dist/plugin.js",
|
6
6
|
"scripts": {
|
@@ -24,18 +24,18 @@
|
|
24
24
|
},
|
25
25
|
"devDependencies": {
|
26
26
|
"@types/jest": "^27.0.1",
|
27
|
-
"@types/node": "^
|
28
|
-
"@types/prettier": "^2.
|
29
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
30
|
-
"@typescript-eslint/parser": "^5.
|
27
|
+
"@types/node": "^17.0.0",
|
28
|
+
"@types/prettier": "^2.4.2",
|
29
|
+
"@typescript-eslint/eslint-plugin": "^5.18.0",
|
30
|
+
"@typescript-eslint/parser": "^5.18.0",
|
31
31
|
"eslint": "^8.1.0",
|
32
32
|
"eslint-config-prettier": "^8.0.0",
|
33
33
|
"husky": "^7.0.0",
|
34
34
|
"jest": "^27.0.1",
|
35
|
-
"pretty-quick": "^3.1.
|
35
|
+
"pretty-quick": "^3.1.2",
|
36
36
|
"ts-jest": "^27.0.5",
|
37
37
|
"ts-node": "^10.2.1",
|
38
|
-
"typescript": "^4.
|
38
|
+
"typescript": "^4.5.2"
|
39
39
|
},
|
40
40
|
"eslintConfig": {
|
41
41
|
"extends": [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prettier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Newton
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -37,6 +37,7 @@ files:
|
|
37
37
|
- dist/rbs/parser.rb
|
38
38
|
- dist/rbs/printer.js
|
39
39
|
- dist/ruby/embed.js
|
40
|
+
- dist/ruby/location.js
|
40
41
|
- dist/ruby/nodes.js
|
41
42
|
- dist/ruby/nodes/alias.js
|
42
43
|
- dist/ruby/nodes/aref.js
|
@@ -81,10 +82,12 @@ files:
|
|
81
82
|
- dist/types/utils.js
|
82
83
|
- dist/utils.js
|
83
84
|
- dist/utils/containsAssignment.js
|
85
|
+
- dist/utils/getChildNodes.js
|
84
86
|
- dist/utils/getTrailingComma.js
|
85
87
|
- dist/utils/hasAncestor.js
|
86
88
|
- dist/utils/inlineEnsureParens.js
|
87
89
|
- dist/utils/isEmptyBodyStmt.js
|
90
|
+
- dist/utils/isEmptyParams.js
|
88
91
|
- dist/utils/isEmptyStmts.js
|
89
92
|
- dist/utils/literal.js
|
90
93
|
- dist/utils/literallineWithoutBreakParent.js
|
@@ -96,6 +99,7 @@ files:
|
|
96
99
|
- lib/prettier.rb
|
97
100
|
- lib/prettier/rake/task.rb
|
98
101
|
- node_modules/prettier/bin-prettier.js
|
102
|
+
- node_modules/prettier/cli.js
|
99
103
|
- node_modules/prettier/doc.js
|
100
104
|
- node_modules/prettier/index.js
|
101
105
|
- node_modules/prettier/package.json
|
@@ -133,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
137
|
- !ruby/object:Gem::Version
|
134
138
|
version: '0'
|
135
139
|
requirements: []
|
136
|
-
rubygems_version: 3.
|
140
|
+
rubygems_version: 3.3.3
|
137
141
|
signing_key:
|
138
142
|
specification_version: 4
|
139
143
|
summary: prettier plugin for the Ruby programming language
|