Update prettier to version 3.3.3 (#3386)

This commit is contained in:
Francesco Lodolo 2024-09-30 10:11:52 +02:00 коммит произвёл GitHub
Родитель 56a16cac8c
Коммит d931216452
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
12 изменённых файлов: 35 добавлений и 65 удалений

Просмотреть файл

@ -2,9 +2,9 @@
translate/dist/
coverage/
docs/_build/
docs/venv/
package-lock.json
specs/
?venv/
/.github/
/media/

Просмотреть файл

@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<link

Просмотреть файл

@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<link

49
package-lock.json сгенерированный
Просмотреть файл

@ -10,7 +10,6 @@
"license": "BSD",
"workspaces": [
"translate",
"tag-admin",
"pontoon"
],
"devDependencies": {
@ -64,7 +63,7 @@
"jest-each": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"jest-watch-typeahead": "^2.2.1",
"prettier": "^2.5.1",
"prettier": "^3.3.3",
"react-intersection-observer": "^9.4.3",
"rollup": "^3.29.5",
"rollup-plugin-css-only": "^4.3.0",
@ -3898,14 +3897,6 @@
"redux": "^4.0.0"
}
},
"node_modules/@types/react-table": {
"version": "6.8.10",
"resolved": "https://registry.npmjs.org/@types/react-table/-/react-table-6.8.10.tgz",
"integrity": "sha512-tM+yAmJtMn9dMMeo8kxgwpqnxTaoGQgZmJf3KIHFDV1tUK01YVC8Pq2xC9kvHENrQ89KXSomv8gvIkcUKQPJnw==",
"dependencies": {
"@types/react": "*"
}
},
"node_modules/@types/react-tabs": {
"version": "2.3.4",
"resolved": "https://registry.npmjs.org/@types/react-tabs/-/react-tabs-2.3.4.tgz",
@ -10901,15 +10892,16 @@
}
},
"node_modules/prettier": {
"version": "2.8.8",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz",
"integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==",
"version": "3.3.3",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz",
"integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==",
"dev": true,
"license": "MIT",
"bin": {
"prettier": "bin-prettier.js"
"prettier": "bin/prettier.cjs"
},
"engines": {
"node": ">=10.13.0"
"node": ">=14"
},
"funding": {
"url": "https://github.com/prettier/prettier?sponsor=1"
@ -11205,21 +11197,6 @@
"resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz",
"integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w=="
},
"node_modules/react-table": {
"version": "6.11.5",
"resolved": "https://registry.npmjs.org/react-table/-/react-table-6.11.5.tgz",
"integrity": "sha512-LM+AS9v//7Y7lAlgTWW/cW6Sn5VOb3EsSkKQfQTzOW8FngB1FUskLLNEVkAYsTX9LjOWR3QlGjykJqCE6eXT/g==",
"dependencies": {
"@types/react-table": "^6.8.5",
"classnames": "^2.2.5",
"react-is": "^16.8.1"
},
"peerDependencies": {
"prop-types": "^15.7.0",
"react": "^16.x.x",
"react-dom": "^16.x.x"
}
},
"node_modules/react-tabs": {
"version": "3.2.3",
"resolved": "https://registry.npmjs.org/react-tabs/-/react-tabs-3.2.3.tgz",
@ -12130,10 +12107,6 @@
"integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==",
"dev": true
},
"node_modules/tag-admin": {
"resolved": "tag-admin",
"link": true
},
"node_modules/terser": {
"version": "5.17.6",
"resolved": "https://registry.npmjs.org/terser/-/terser-5.17.6.tgz",
@ -13013,14 +12986,6 @@
"yuglify": "^2.0.0"
}
},
"tag-admin": {
"license": "BSD",
"dependencies": {
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-table": "^6.11.5"
}
},
"translate": {
"dependencies": {
"@codemirror/autocomplete": "^6.16.2",

Просмотреть файл

@ -79,7 +79,7 @@
"jest-each": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"jest-watch-typeahead": "^2.2.1",
"prettier": "^2.5.1",
"prettier": "^3.3.3",
"react-intersection-observer": "^9.4.3",
"rollup": "^3.29.5",
"rollup-plugin-css-only": "^4.3.0",

Просмотреть файл

@ -165,12 +165,12 @@ $(function () {
return valA < valB
? 1
: valA > valB
? -1
: sourceA > sourceB
? 1
: sourceA < sourceB
? -1
: 0;
? -1
: sourceA > sourceB
? 1
: sourceA < sourceB
? -1
: 0;
});
ul.html(listitems);

Просмотреть файл

@ -55,7 +55,8 @@
right: 0px;
width: 100px;
height: 100%;
box-shadow: 0 0 10px var(--status-translated),
box-shadow:
0 0 10px var(--status-translated),
0 0 5px var(--status-translated);
opacity: 1;
transform: rotate(3deg) translate(0px, -4px);

Просмотреть файл

@ -55,8 +55,8 @@ export function AddonPromotion(): React.ReactElement<'div'> | null {
const downloadHref = isFirefox
? 'https://addons.mozilla.org/firefox/addon/pontoon-tools/'
: isChrome
? 'https://chrome.google.com/webstore/detail/pontoon-add-on/gnbfbnpjncpghhjmmhklfhcglbopagbb'
: '';
? 'https://chrome.google.com/webstore/detail/pontoon-add-on/gnbfbnpjncpghhjmmhklfhcglbopagbb'
: '';
// User not authenticated or promotion dismissed or add-on installed or
// page not loaded in Firefox or Chrome (add-on not available for other browsers)

Просмотреть файл

@ -329,7 +329,11 @@ function serialize(node: Descendant, users: MentionUser[]): string {
}
}
const RenderElement = ({ attributes, children, element }: RenderElementProps) =>
const RenderElement = ({
attributes,
children,
element,
}: RenderElementProps) =>
element.type === 'mention' ? (
<span {...attributes} contentEditable={false} className='mention-element'>
@{element.character}

Просмотреть файл

@ -245,12 +245,12 @@ export function HistoryTranslationBase({
translation.approved
? 'approved'
: translation.pretranslated
? 'pretranslated'
: translation.fuzzy
? 'fuzzy'
: translation.rejected
? 'rejected'
: 'unreviewed',
? 'pretranslated'
: translation.fuzzy
? 'fuzzy'
: translation.rejected
? 'rejected'
: 'unreviewed',
isReadOnlyEditor
? 'cannot-copy'
: { 'can-approve': isTranslator, 'can-reject': canReject },

Просмотреть файл

@ -108,8 +108,8 @@ export function SearchBoxBase({
next[filter] = Array.isArray(value)
? value
: typeof value === 'string'
? value.split(',')
: [];
? value.split(',')
: [];
}
return next;
},

Просмотреть файл

@ -68,7 +68,7 @@ describe('<EditField>', () => {
setStart() {},
getBoundingClientRect: () => ({ right: 0 }),
getClientRects: () => ({ length: 0, left: 0, right: 0 }),
} as unknown as Range);
}) as unknown as Range;
});
afterAll(() => {