Updated prettier version to 2.8.0

This commit is contained in:
Alvaro 2023-02-23 11:38:09 -07:00 committed by GitHub
parent d1527d0bc0
commit a316c5d9d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 89 additions and 84 deletions

View file

@ -122,7 +122,7 @@ const rules = {
'react/display-name': 'error', 'react/display-name': 'error',
'react/jsx-pascal-case': ['error', {allowNamespace: true}], 'react/jsx-pascal-case': ['error', { allowNamespace: true }],
// Allow returning values from promise executors for brevity. // Allow returning values from promise executors for brevity.
'no-promise-executor-return': 'off', 'no-promise-executor-return': 'off',

View file

@ -39,15 +39,16 @@ module.exports = ({ config }) => {
constants: 'commonjs constants', constants: 'commonjs constants',
zlib: 'commonjs zlib', zlib: 'commonjs zlib',
'@signalapp/libsignal-client': 'commonjs @signalapp/libsignal-client', '@signalapp/libsignal-client': 'commonjs @signalapp/libsignal-client',
'@signalapp/libsignal-client/zkgroup': 'commonjs @signalapp/libsignal-client/zkgroup', '@signalapp/libsignal-client/zkgroup':
'commonjs @signalapp/libsignal-client/zkgroup',
'@signalapp/ringrtc': 'commonjs @signalapp/ringrtc', '@signalapp/ringrtc': 'commonjs @signalapp/ringrtc',
'@signalapp/better-sqlite3': 'commonjs @signalapp/better-sqlite3', '@signalapp/better-sqlite3': 'commonjs @signalapp/better-sqlite3',
'electron': 'commonjs electron', electron: 'commonjs electron',
'fs-xattr': 'commonjs fs-xattr', 'fs-xattr': 'commonjs fs-xattr',
'fsevents': 'commonjs fsevents', fsevents: 'commonjs fsevents',
'mac-screen-capture-permissions': 'commonjs mac-screen-capture-permissions', 'mac-screen-capture-permissions': 'commonjs mac-screen-capture-permissions',
'sass': 'commonjs sass', sass: 'commonjs sass',
'bufferutil': 'commonjs bufferutil', bufferutil: 'commonjs bufferutil',
'utf-8-validate': 'commonjs utf-8-validate', 'utf-8-validate': 'commonjs utf-8-validate',
}; };

View file

@ -189,7 +189,7 @@
"@babel/preset-react": "7.17.12", "@babel/preset-react": "7.17.12",
"@babel/preset-typescript": "7.17.12", "@babel/preset-typescript": "7.17.12",
"@electron/fuses": "1.5.0", "@electron/fuses": "1.5.0",
"@mixer/parallel-prettier": "2.0.1", "@mixer/parallel-prettier": "2.0.3",
"@signalapp/mock-server": "2.15.0", "@signalapp/mock-server": "2.15.0",
"@storybook/addon-a11y": "6.5.6", "@storybook/addon-a11y": "6.5.6",
"@storybook/addon-actions": "6.5.6", "@storybook/addon-actions": "6.5.6",
@ -291,7 +291,7 @@
"nyc": "11.4.1", "nyc": "11.4.1",
"patch-package": "6.4.7", "patch-package": "6.4.7",
"playwright": "1.30.0", "playwright": "1.30.0",
"prettier": "2.7.1", "prettier": "2.8.0",
"sass": "1.49.7", "sass": "1.49.7",
"sass-loader": "10.2.0", "sass-loader": "10.2.0",
"sinon": "11.1.1", "sinon": "11.1.1",
@ -307,6 +307,7 @@
"webpack-dev-server": "4.11.1" "webpack-dev-server": "4.11.1"
}, },
"resolutions": { "resolutions": {
"@mixer/parallel-prettier/prettier": "2.8.0",
"@storybook/react/@storybook/core/node-fetch": "2.6.1", "@storybook/react/@storybook/core/node-fetch": "2.6.1",
"@types/react": "17.0.45", "@types/react": "17.0.45",
"@types/react-dom": "17.0.17", "@types/react-dom": "17.0.17",

View file

@ -635,29 +635,31 @@ export function CompositionArea({
return ( return (
<div className="CompositionArea"> <div className="CompositionArea">
{attachmentToEdit && 'url' in attachmentToEdit && attachmentToEdit.url && ( {attachmentToEdit &&
<MediaEditor 'url' in attachmentToEdit &&
i18n={i18n} attachmentToEdit.url && (
imageSrc={attachmentToEdit.url} <MediaEditor
imageToBlurHash={imageToBlurHash} i18n={i18n}
isSending={false} imageSrc={attachmentToEdit.url}
onClose={() => setAttachmentToEdit(undefined)} imageToBlurHash={imageToBlurHash}
onDone={({ data, contentType, blurHash }) => { isSending={false}
const newAttachment = { onClose={() => setAttachmentToEdit(undefined)}
...attachmentToEdit, onDone={({ data, contentType, blurHash }) => {
contentType, const newAttachment = {
blurHash, ...attachmentToEdit,
data, contentType,
size: data.byteLength, blurHash,
}; data,
size: data.byteLength,
};
addAttachment(conversationId, newAttachment); addAttachment(conversationId, newAttachment);
setAttachmentToEdit(undefined); setAttachmentToEdit(undefined);
}} }}
installedPacks={installedPacks} installedPacks={installedPacks}
recentStickers={recentStickers} recentStickers={recentStickers}
/> />
)} )}
<div className="CompositionArea__toggle-large"> <div className="CompositionArea__toggle-large">
<button <button
type="button" type="button"

View file

@ -802,15 +802,16 @@ export function StoryViewer({
))} ))}
</div> </div>
<div className="StoryViewer__actions"> <div className="StoryViewer__actions">
{sendStatus === ResolvedSendStatus.Failed && !wasManuallyRetried && ( {sendStatus === ResolvedSendStatus.Failed &&
<button !wasManuallyRetried && (
className="StoryViewer__actions__failed" <button
onClick={doRetryMessageSend} className="StoryViewer__actions__failed"
type="button" onClick={doRetryMessageSend}
> type="button"
{i18n('StoryViewer__failed')} >
</button> {i18n('StoryViewer__failed')}
)} </button>
)}
{sendStatus === ResolvedSendStatus.PartiallySent && {sendStatus === ResolvedSendStatus.PartiallySent &&
!wasManuallyRetried && ( !wasManuallyRetried && (
<button <button

View file

@ -1844,14 +1844,14 @@
resolved "https://registry.yarnpkg.com/@mdx-js/util/-/util-1.6.22.tgz#219dfd89ae5b97a8801f015323ffa4b62f45718b" resolved "https://registry.yarnpkg.com/@mdx-js/util/-/util-1.6.22.tgz#219dfd89ae5b97a8801f015323ffa4b62f45718b"
integrity sha512-H1rQc1ZOHANWBvPcW+JpGwr+juXSxM8Q8YCkm3GhZd8REu1fHR3z99CErO1p9pkcfcxZnMdIZdIsXkOHY0NilA== integrity sha512-H1rQc1ZOHANWBvPcW+JpGwr+juXSxM8Q8YCkm3GhZd8REu1fHR3z99CErO1p9pkcfcxZnMdIZdIsXkOHY0NilA==
"@mixer/parallel-prettier@2.0.1": "@mixer/parallel-prettier@2.0.3":
version "2.0.1" version "2.0.3"
resolved "https://registry.yarnpkg.com/@mixer/parallel-prettier/-/parallel-prettier-2.0.1.tgz#fd69bb55e38b3c1dbb2f1a534ea1a0cd3fe34946" resolved "https://registry.yarnpkg.com/@mixer/parallel-prettier/-/parallel-prettier-2.0.3.tgz#970902afcd38c8c71155e1d089e5444896abc253"
integrity sha512-bx/rdOhJ2EOxQTm4cQQBsdbg+IwaQHh/ugIZMsWNEILXLJWQukCv+6fDUBZkoIk/zEoW45uIrCugARCuuDwrWw== integrity sha512-42ImvDusmxjpQLHEmZrljV/+L9ynfmaTe5ooLMTTLyELulUJtJW8vBXCadQdodfZ5wjr2Sg3YGIzWE0rnBsfDg==
dependencies: dependencies:
chalk "^4.1.0" chalk "^4.1.0"
commander "^7.0.0" commander "^7.0.0"
glob-stream "^6.1.0" glob-stream "^7.0.0"
ignore "^5.1.8" ignore "^5.1.8"
ora "^5.3.0" ora "^5.3.0"
prettier "^2.0.4" prettier "^2.0.4"
@ -8089,14 +8089,14 @@ duplexify@^3.4.2, duplexify@^3.5.3:
readable-stream "^2.0.0" readable-stream "^2.0.0"
stream-shift "^1.0.0" stream-shift "^1.0.0"
duplexify@^3.6.0: duplexify@^4.1.1:
version "3.7.1" version "4.1.2"
resolved "https://registry.yarnpkg.com/duplexify/-/duplexify-3.7.1.tgz#2a4df5317f6ccfd91f86d6fd25d8d8a103b88309" resolved "https://registry.yarnpkg.com/duplexify/-/duplexify-4.1.2.tgz#18b4f8d28289132fa0b9573c898d9f903f81c7b0"
integrity sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g== integrity sha512-fz3OjcNCHmRP12MJoZMPglx8m4rrFP8rovnk4vT8Fs+aonZoCwGg10dSsQsfP/E62eZcPTMSMP6686fu9Qlqtw==
dependencies: dependencies:
end-of-stream "^1.0.0" end-of-stream "^1.4.1"
inherits "^2.0.1" inherits "^2.0.3"
readable-stream "^2.0.0" readable-stream "^3.1.1"
stream-shift "^1.0.0" stream-shift "^1.0.0"
ecdsa-sig-formatter@1.0.11: ecdsa-sig-formatter@1.0.11:
@ -10021,21 +10021,21 @@ glob-promise@^3.4.0:
dependencies: dependencies:
"@types/glob" "*" "@types/glob" "*"
glob-stream@^6.1.0: glob-stream@^7.0.0:
version "6.1.0" version "7.0.0"
resolved "https://registry.yarnpkg.com/glob-stream/-/glob-stream-6.1.0.tgz#7045c99413b3eb94888d83ab46d0b404cc7bdde4" resolved "https://registry.yarnpkg.com/glob-stream/-/glob-stream-7.0.0.tgz#1c42227d5c0bc1aba20f36ee9b09cef7f194dc00"
integrity sha1-cEXJlBOz65SIjYOrRtC0BMx73eQ= integrity sha512-evR4kvr6s0Yo5t4CD4H171n4T8XcnPFznvsbeN8K9FPzc0Q0wYqcOWyGtck2qcvJSLXKnU6DnDyfmbDDabYvRQ==
dependencies: dependencies:
extend "^3.0.0" extend "^3.0.2"
glob "^7.1.1" glob "^7.2.0"
glob-parent "^3.1.0" glob-parent "^6.0.2"
is-negated-glob "^1.0.0" is-negated-glob "^1.0.0"
ordered-read-streams "^1.0.0" ordered-read-streams "^1.0.1"
pumpify "^1.3.5" pumpify "^2.0.1"
readable-stream "^2.1.5" readable-stream "^3.6.0"
remove-trailing-separator "^1.0.1" remove-trailing-separator "^1.1.0"
to-absolute-glob "^2.0.0" to-absolute-glob "^2.0.2"
unique-stream "^2.0.2" unique-stream "^2.3.1"
glob-to-regexp@^0.3.0: glob-to-regexp@^0.3.0:
version "0.3.0" version "0.3.0"
@ -13862,10 +13862,10 @@ ora@^5.3.0:
strip-ansi "^6.0.0" strip-ansi "^6.0.0"
wcwidth "^1.0.1" wcwidth "^1.0.1"
ordered-read-streams@^1.0.0: ordered-read-streams@^1.0.1:
version "1.0.1" version "1.0.1"
resolved "https://registry.yarnpkg.com/ordered-read-streams/-/ordered-read-streams-1.0.1.tgz#77c0cb37c41525d64166d990ffad7ec6a0e1363e" resolved "https://registry.yarnpkg.com/ordered-read-streams/-/ordered-read-streams-1.0.1.tgz#77c0cb37c41525d64166d990ffad7ec6a0e1363e"
integrity sha1-d8DLN8QVJdZBZtmQ/61+xqDhNj4= integrity sha512-Z87aSjx3r5c0ZB7bcJqIgIRX5bxR7A4aSzvIbaxd0oTkWBCOoKfuGHiKj60CHVUgg1Phm5yMZzBdt8XqRs73Mw==
dependencies: dependencies:
readable-stream "^2.0.1" readable-stream "^2.0.1"
@ -14746,21 +14746,16 @@ prettier-linter-helpers@^1.0.0:
dependencies: dependencies:
fast-diff "^1.1.2" fast-diff "^1.1.2"
prettier@2.7.1: prettier@2.8.0, prettier@^2.0.4:
version "2.7.1" version "2.8.0"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64" resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.0.tgz#c7df58393c9ba77d6fba3921ae01faf994fb9dc9"
integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g== integrity sha512-9Lmg8hTFZKG0Asr/kW9Bp8tJjRVluO8EJQVfY2T7FMw9T5jy4I/Uvx0Rca/XWf50QQ1/SS48+6IJWnrb+2yemA==
"prettier@>=2.2.1 <=2.3.0": "prettier@>=2.2.1 <=2.3.0":
version "2.3.0" version "2.3.0"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.0.tgz#b6a5bf1284026ae640f17f7ff5658a7567fc0d18" resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.0.tgz#b6a5bf1284026ae640f17f7ff5658a7567fc0d18"
integrity sha512-kXtO4s0Lz/DW/IJ9QdWhAf7/NmPWQXkFr/r/WkR3vyI+0v8amTDxiaQSLzs8NBlytfLWX/7uQUMIW677yLKl4w== integrity sha512-kXtO4s0Lz/DW/IJ9QdWhAf7/NmPWQXkFr/r/WkR3vyI+0v8amTDxiaQSLzs8NBlytfLWX/7uQUMIW677yLKl4w==
prettier@^2.0.4:
version "2.6.0"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.6.0.tgz#12f8f504c4d8ddb76475f441337542fa799207d4"
integrity sha512-m2FgJibYrBGGgQXNzfd0PuDGShJgRavjUoRCw1mZERIWVSXF0iLzLm+aOqTAbLnC3n6JzUhAA8uZnFVghHJ86A==
pretty-error@^2.1.1: pretty-error@^2.1.1:
version "2.1.1" version "2.1.1"
resolved "https://registry.yarnpkg.com/pretty-error/-/pretty-error-2.1.1.tgz#5f4f87c8f91e5ae3f3ba87ab4cf5e03b1a17f1a3" resolved "https://registry.yarnpkg.com/pretty-error/-/pretty-error-2.1.1.tgz#5f4f87c8f91e5ae3f3ba87ab4cf5e03b1a17f1a3"
@ -14979,14 +14974,14 @@ pumpify@^1.3.3:
inherits "^2.0.3" inherits "^2.0.3"
pump "^2.0.0" pump "^2.0.0"
pumpify@^1.3.5: pumpify@^2.0.1:
version "1.5.1" version "2.0.1"
resolved "https://registry.yarnpkg.com/pumpify/-/pumpify-1.5.1.tgz#36513be246ab27570b1a374a5ce278bfd74370ce" resolved "https://registry.yarnpkg.com/pumpify/-/pumpify-2.0.1.tgz#abfc7b5a621307c728b551decbbefb51f0e4aa1e"
integrity sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ== integrity sha512-m7KOje7jZxrmutanlkS1daj1dS6z6BgslzOXmcSEpIlCxM3VJH7lG5QLeck/6hgF6F4crFf01UtQmNsJfweTAw==
dependencies: dependencies:
duplexify "^3.6.0" duplexify "^4.1.1"
inherits "^2.0.3" inherits "^2.0.3"
pump "^2.0.0" pump "^3.0.0"
punycode@1.3.2: punycode@1.3.2:
version "1.3.2" version "1.3.2"
@ -15901,6 +15896,11 @@ remove-trailing-separator@^1.0.1:
version "1.0.1" version "1.0.1"
resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.0.1.tgz#615ebb96af559552d4bf4057c8436d486ab63cc4" resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.0.1.tgz#615ebb96af559552d4bf4057c8436d486ab63cc4"
remove-trailing-separator@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef"
integrity sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw==
renderkid@^2.0.1: renderkid@^2.0.1:
version "2.0.3" version "2.0.3"
resolved "https://registry.yarnpkg.com/renderkid/-/renderkid-2.0.3.tgz#380179c2ff5ae1365c522bf2fcfcff01c5b74149" resolved "https://registry.yarnpkg.com/renderkid/-/renderkid-2.0.3.tgz#380179c2ff5ae1365c522bf2fcfcff01c5b74149"
@ -17540,10 +17540,10 @@ tmp@^0.2.0:
dependencies: dependencies:
rimraf "^3.0.0" rimraf "^3.0.0"
to-absolute-glob@^2.0.0: to-absolute-glob@^2.0.2:
version "2.0.2" version "2.0.2"
resolved "https://registry.yarnpkg.com/to-absolute-glob/-/to-absolute-glob-2.0.2.tgz#1865f43d9e74b0822db9f145b78cff7d0f7c849b" resolved "https://registry.yarnpkg.com/to-absolute-glob/-/to-absolute-glob-2.0.2.tgz#1865f43d9e74b0822db9f145b78cff7d0f7c849b"
integrity sha1-GGX0PZ50sIItufFFt4z/fQ98hJs= integrity sha512-rtwLUQEwT8ZeKQbyFJyomBRYXyE16U5VKuy0ftxLMK/PZb2fkOsg5r9kHdauuVDbsNdIBoC/HCthpidamQFXYA==
dependencies: dependencies:
is-absolute "^1.0.0" is-absolute "^1.0.0"
is-negated-glob "^1.0.0" is-negated-glob "^1.0.0"
@ -17983,7 +17983,7 @@ unique-slug@^2.0.0:
dependencies: dependencies:
imurmurhash "^0.1.4" imurmurhash "^0.1.4"
unique-stream@^2.0.2: unique-stream@^2.3.1:
version "2.3.1" version "2.3.1"
resolved "https://registry.yarnpkg.com/unique-stream/-/unique-stream-2.3.1.tgz#c65d110e9a4adf9a6c5948b28053d9a8d04cbeac" resolved "https://registry.yarnpkg.com/unique-stream/-/unique-stream-2.3.1.tgz#c65d110e9a4adf9a6c5948b28053d9a8d04cbeac"
integrity sha512-2nY4TnBE70yoxHkDli7DMazpWiP7xMdCYqU2nBRO0UB+ZpEkGsSija7MvmvnZFUeC+mrgiUfcHSr3LmRFIg4+A== integrity sha512-2nY4TnBE70yoxHkDli7DMazpWiP7xMdCYqU2nBRO0UB+ZpEkGsSija7MvmvnZFUeC+mrgiUfcHSr3LmRFIg4+A==