A platform for community discussion. Free, open, simple.
Bump prettier to 1.19.1 and lock dependency (#8350)
Martin Brennanabf215a0e4ec
diff --git a/package.json b/package.jsonindex f667b5f05e7..11769181f3f 100644--- a/package.json+++ b/package.json@@ -47,7 +47,7 @@"install-peerdeps": "^1.10.2","lodash-cli": "https://github.com/lodash-archive/lodash-cli.git","pretender": "^1.6",- "prettier": "^1.18.2",+ "prettier": "1.19.1","puppeteer": "1.20","qunit": "2.8.0","route-recognizer": "^0.3.3",diff --git a/test/javascripts/acceptance/group-requests-test.js.es6 b/test/javascripts/acceptance/group-requests-test.js.es6index 132ba3f0f2a..3e9c189dc70 100644--- a/test/javascripts/acceptance/group-requests-test.js.es6+++ b/test/javascripts/acceptance/group-requests-test.js.es6@@ -126,5 +126,8 @@ QUnit.test("Group Requests", async assert => {.trim(),"denied");- assert.deepEqual(requests, [["19", "true"], ["20", undefined]]);+ assert.deepEqual(requests, [+ ["19", "true"],+ ["20", undefined]+ ]);});diff --git a/test/javascripts/components/combo-box-test.js.es6 b/test/javascripts/components/combo-box-test.js.es6index 94987dbb910..f943e2b05db 100644--- a/test/javascripts/components/combo-box-test.js.es6+++ b/test/javascripts/components/combo-box-test.js.es6@@ -11,7 +11,10 @@ moduleForComponent("combo-box", {componentTest("default", {template: "{{combo-box content=items}}",beforeEach() {- this.set("items", [{ id: 1, name: "hello" }, { id: 2, name: "world" }]);+ this.set("items", [+ { id: 1, name: "hello" },+ { id: 2, name: "world" }+ ]);},async test(assert) {@@ -43,7 +46,10 @@ componentTest("with valueAttribute", {componentTest("with nameProperty", {template: '{{combo-box content=items nameProperty="text"}}',beforeEach() {- this.set("items", [{ id: 0, text: "hello" }, { id: 1, text: "world" }]);+ this.set("items", [+ { id: 0, text: "hello" },+ { id: 1, text: "world" }+ ]);},async test(assert) {diff --git a/test/javascripts/components/multi-select-test.js.es6 b/test/javascripts/components/multi-select-test.js.es6index 62c1c09e5e7..a012e78ce36 100644--- a/test/javascripts/components/multi-select-test.js.es6+++ b/test/javascripts/components/multi-select-test.js.es6@@ -14,7 +14,10 @@ componentTest("with objects and values", {template: "{{multi-select content=items values=values}}",beforeEach() {- this.set("items", [{ id: 1, name: "hello" }, { id: 2, name: "world" }]);+ this.set("items", [+ { id: 1, name: "hello" },+ { id: 2, name: "world" }+ ]);this.set("values", [1, 2]);},diff --git a/test/javascripts/components/single-select-test.js.es6 b/test/javascripts/components/single-select-test.js.es6index 22fab0a4f9e..24a472621f8 100644--- a/test/javascripts/components/single-select-test.js.es6+++ b/test/javascripts/components/single-select-test.js.es6@@ -33,7 +33,10 @@ componentTest("accepts a value by reference", {beforeEach() {this.set("value", 1);- this.set("content", [{ id: 1, name: "robin" }, { id: 2, name: "regis" }]);+ this.set("content", [+ { id: 1, name: "robin" },+ { id: 2, name: "regis" }+ ]);},async test(assert) {@@ -148,7 +151,10 @@ componentTest("dynamic headerText", {template: "{{single-select value=1 content=content}}",beforeEach() {- this.set("content", [{ id: 1, name: "robin" }, { id: 2, name: "regis" }]);+ this.set("content", [+ { id: 1, name: "robin" },+ { id: 2, name: "regis" }+ ]);},async test(assert) {@@ -246,7 +252,10 @@ componentTest("supports keyboard events", {template: "{{single-select content=content filterable=true}}",beforeEach() {- this.set("content", [{ id: 1, name: "robin" }, { id: 2, name: "regis" }]);+ this.set("content", [+ { id: 1, name: "robin" },+ { id: 2, name: "regis" }+ ]);},skip: true,diff --git a/test/javascripts/controllers/topic-test.js.es6 b/test/javascripts/controllers/topic-test.js.es6index e48105a67c3..4ae05626666 100644--- a/test/javascripts/controllers/topic-test.js.es6+++ b/test/javascripts/controllers/topic-test.js.es6@@ -324,7 +324,10 @@ QUnit.test("canChangeOwner", function(assert) {this.registry.injection("controller", "currentUser", "current-user:main");const postStream = {- posts: [{ id: 1, username: "gary" }, { id: 2, username: "lili" }],+ posts: [+ { id: 1, username: "gary" },+ { id: 2, username: "lili" }+ ],stream: [1, 2]};diff --git a/test/javascripts/models/post-stream-test.js.es6 b/test/javascripts/models/post-stream-test.js.es6index fb90fdb8b41..40b5f87af59 100644--- a/test/javascripts/models/post-stream-test.js.es6+++ b/test/javascripts/models/post-stream-test.js.es6@@ -141,7 +141,11 @@ QUnit.test("closestPostNumberFor", assert => {QUnit.test("closestDaysAgoFor", assert => {const postStream = buildStream(1231);- postStream.set("timelineLookup", [[1, 10], [3, 8], [5, 1]]);+ postStream.set("timelineLookup", [+ [1, 10],+ [3, 8],+ [5, 1]+ ]);assert.equal(postStream.closestDaysAgoFor(1), 10);assert.equal(postStream.closestDaysAgoFor(2), 10);diff --git a/yarn.lock b/yarn.lockindex 252e71449c6..2094f01b991 100644--- a/yarn.lock+++ b/yarn.lock@@ -2287,10 +2287,10 @@ pretender@^1.6:fake-xml-http-request "^1.6.0"route-recognizer "^0.3.3"-prettier@^1.18.2:- version "1.18.2"- resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.18.2.tgz#6823e7c5900017b4bd3acf46fe9ac4b4d7bda9ea"- integrity sha512-OeHeMc0JhFE9idD4ZdtNibzY0+TPHSpSSb9h8FqtP+YnoZZ1sl8Vc9b1sasjfymH3SonAF4QcA2+mzHPhMvIiw==+ version "1.19.1"+ resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"+ integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==process-nextick-args@~2.0.0:version "2.0.0"