зеркало из https://github.com/mozilla/pontoon.git
Update prettier to version 3.3.3 (#3386)
This commit is contained in:
Родитель
56a16cac8c
Коммит
d931216452
|
@ -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
|
||||
|
|
|
@ -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(() => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче