Merge pull request #3506 from thelounge/renovate/prettier-1.x

Update dependency prettier to v1.19.0
This commit is contained in:
Pavel Djundik 2019-11-09 11:17:57 +02:00 committed by GitHub
commit 17b2d2fc32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 30 additions and 16 deletions

View File

@ -21,5 +21,6 @@ yarn.lock
.editorconfig .editorconfig
.eslintignore .eslintignore
.gitattributes .gitattributes
.browserslistrc
*.css *.css

View File

@ -3,9 +3,7 @@
<template v-if="message.from && message.from.nick" <template v-if="message.from && message.from.nick"
><Username :user="message.from" /> has changed the topic to: ><Username :user="message.from" /> has changed the topic to:
</template> </template>
<template v-else <template v-else>The topic is: </template>
>The topic is:
</template>
<span v-if="message.text" class="new-topic" <span v-if="message.text" class="new-topic"
><ParsedMessage :network="network" :message="message" ><ParsedMessage :network="network" :message="message"
/></span> /></span>

View File

@ -6,7 +6,10 @@ const sidebar = $("#sidebar");
const {vueApp} = require("../vue"); const {vueApp} = require("../vue");
socket.on("quit", function(data) { socket.on("quit", function(data) {
vueApp.networks.splice(vueApp.networks.findIndex((n) => n.uuid === data.network), 1); vueApp.networks.splice(
vueApp.networks.findIndex((n) => n.uuid === data.network),
1
);
vueApp.$nextTick(() => { vueApp.$nextTick(() => {
const chan = sidebar.find(".chan"); const chan = sidebar.find(".chan");

View File

@ -107,7 +107,7 @@
"postcss-import": "12.0.1", "postcss-import": "12.0.1",
"postcss-loader": "3.0.0", "postcss-loader": "3.0.0",
"postcss-preset-env": "6.7.0", "postcss-preset-env": "6.7.0",
"prettier": "1.18.2", "prettier": "1.19.0",
"pretty-quick": "2.0.1", "pretty-quick": "2.0.1",
"primer-tooltips": "2.0.0", "primer-tooltips": "2.0.0",
"sinon": "7.5.0", "sinon": "7.5.0",

View File

@ -7,7 +7,10 @@ describe("fill", () => {
const text = "01234567890123456789"; const text = "01234567890123456789";
it("should return an entry for the unmatched end of string", () => { it("should return an entry for the unmatched end of string", () => {
const existingEntries = [{start: 0, end: 10}, {start: 5, end: 15}]; const existingEntries = [
{start: 0, end: 10},
{start: 5, end: 15},
];
const expected = [{start: 15, end: 20}]; const expected = [{start: 15, end: 20}];
@ -17,9 +20,15 @@ describe("fill", () => {
}); });
it("should return an entry per unmatched areas of the text", () => { it("should return an entry per unmatched areas of the text", () => {
const existingEntries = [{start: 0, end: 5}, {start: 10, end: 15}]; const existingEntries = [
{start: 0, end: 5},
{start: 10, end: 15},
];
const expected = [{start: 5, end: 10}, {start: 15, end: 20}]; const expected = [
{start: 5, end: 10},
{start: 15, end: 20},
];
const actual = fill(existingEntries, text); const actual = fill(existingEntries, text);
@ -27,7 +36,10 @@ describe("fill", () => {
}); });
it("should not return anything when entries match all text", () => { it("should not return anything when entries match all text", () => {
const existingEntries = [{start: 0, end: 10}, {start: 10, end: 20}]; const existingEntries = [
{start: 0, end: 10},
{start: 10, end: 20},
];
const actual = fill(existingEntries, text); const actual = fill(existingEntries, text);

View File

@ -117,9 +117,9 @@ describe("Utils", function() {
}); });
it("should maintain existing properties of a nested object", function() { it("should maintain existing properties of a nested object", function() {
expect(Utils.parseConfigOptions("foo.bar=true", {foo: {baz: false}})).to.deep.equal( expect(
{foo: {bar: true, baz: false}} Utils.parseConfigOptions("foo.bar=true", {foo: {baz: false}})
); ).to.deep.equal({foo: {bar: true, baz: false}});
}); });
it("should maintain existing entries of an array", function() { it("should maintain existing entries of an array", function() {

View File

@ -7309,10 +7309,10 @@ prettier@1.16.3:
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.3.tgz#8c62168453badef702f34b45b6ee899574a6a65d" resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.3.tgz#8c62168453badef702f34b45b6ee899574a6a65d"
integrity sha512-kn/GU6SMRYPxUakNXhpP0EedT/KmaPzr0H5lIsDogrykbaxOpOfAFfk5XA7DZrJyMAv1wlMV3CPcZruGXVVUZw== integrity sha512-kn/GU6SMRYPxUakNXhpP0EedT/KmaPzr0H5lIsDogrykbaxOpOfAFfk5XA7DZrJyMAv1wlMV3CPcZruGXVVUZw==
prettier@1.18.2: prettier@1.19.0:
version "1.18.2" version "1.19.0"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.18.2.tgz#6823e7c5900017b4bd3acf46fe9ac4b4d7bda9ea" resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.0.tgz#3bec4489d5eebcd52b95ddd2c22467b5c852fde1"
integrity sha512-OeHeMc0JhFE9idD4ZdtNibzY0+TPHSpSSb9h8FqtP+YnoZZ1sl8Vc9b1sasjfymH3SonAF4QcA2+mzHPhMvIiw== integrity sha512-GlAIjk6DjkNT6u/Bw5QCWrbzh9YlLKwwmJT//1YiCR3WDpZDnyss64aXHQZgF8VKeGlWnX6+tGsKSVxsZT/gtA==
pretty-quick@2.0.1: pretty-quick@2.0.1:
version "2.0.1" version "2.0.1"