chore(deps): Prettier version (#28857)

pull/28830/head^2
Tasso Evangelista 3 years ago committed by GitHub
parent efbc74ce6f
commit 38422261db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      apps/meteor/app/apps/server/bridges/commands.ts
  2. 6
      apps/meteor/client/components/Sidebar/SidebarGenericItem.tsx
  3. 2
      apps/meteor/client/components/message/notification/MessageNotification.tsx
  4. 2
      apps/meteor/client/lib/2fa/process2faReturn.ts
  5. 2
      apps/meteor/client/providers/VideoConfProvider.tsx
  6. 6
      apps/meteor/client/sidebar/header/UserDropdown.tsx
  7. 2
      apps/meteor/client/startup/iframeCommands.ts
  8. 2
      apps/meteor/client/views/admin/rooms/RoomsTable.tsx
  9. 6
      apps/meteor/ee/client/views/admin/engagementDashboard/dataView/periods.ts
  10. 2
      apps/meteor/package.json
  11. 2
      packages/core-services/package.json
  12. 2
      packages/core-typings/package.json
  13. 2
      packages/eslint-config/package.json
  14. 2
      packages/fuselage-ui-kit/package.json
  15. 2
      packages/instance-status/package.json
  16. 29
      yarn.lock

@ -10,7 +10,7 @@ import type { AppServerOrchestrator } from '../../../../ee/server/apps/orchestra
import { parseParameters } from '../../../../lib/utils/parseParameters';
export class AppCommandsBridge extends CommandBridge {
disabledCommands: Map<string, typeof slashCommands.commands[string]>;
disabledCommands: Map<string, (typeof slashCommands.commands)[string]>;
// eslint-disable-next-line no-empty-function
constructor(private readonly orch: AppServerOrchestrator) {
@ -42,7 +42,7 @@ export class AppCommandsBridge extends CommandBridge {
throw new Error(`The command is not currently disabled: "${cmd}"`);
}
slashCommands.commands[cmd] = this.disabledCommands.get(cmd) as typeof slashCommands.commands[string];
slashCommands.commands[cmd] = this.disabledCommands.get(cmd) as (typeof slashCommands.commands)[string];
this.disabledCommands.delete(cmd);
this.orch.getNotifier().commandUpdated(cmd);
@ -93,7 +93,7 @@ export class AppCommandsBridge extends CommandBridge {
item.previewer = command.previewer ? this._appCommandPreviewer.bind(this) : item.previewer;
item.previewCallback = (
command.executePreviewItem ? this._appCommandPreviewExecutor.bind(this) : item.previewCallback
) as typeof slashCommands.commands[string]['previewCallback'];
) as (typeof slashCommands.commands)[string]['previewCallback'];
slashCommands.commands[cmd] = item;
this.orch.getNotifier().commandUpdated(cmd);
@ -114,7 +114,7 @@ export class AppCommandsBridge extends CommandBridge {
providesPreview: command.providesPreview,
previewer: !command.previewer ? undefined : this._appCommandPreviewer.bind(this),
previewCallback: (!command.executePreviewItem ? undefined : this._appCommandPreviewExecutor.bind(this)) as
| typeof slashCommands.commands[string]['previewCallback']
| (typeof slashCommands.commands)[string]['previewCallback']
| undefined,
} as SlashCommand;

@ -9,9 +9,9 @@ type SidebarGenericItemProps = {
featured?: boolean;
children: ReactNode;
customColors?: {
default: typeof colors[string];
hover: typeof colors[string];
active: typeof colors[string];
default: (typeof colors)[string];
hover: (typeof colors)[string];
active: (typeof colors)[string];
};
externalUrl?: boolean;
};

@ -7,7 +7,7 @@ import React from 'react';
type MessageNotificationProps = {
label: TranslationKey;
bg: keyof typeof Palette['badge'];
bg: keyof (typeof Palette)['badge'];
};
const MessageNotification = ({ label, bg }: MessageNotificationProps): ReactElement => {

@ -7,7 +7,7 @@ import { isTotpRequiredError } from './utils';
const twoFactorMethods = ['totp', 'email', 'password'] as const;
type TwoFactorMethod = typeof twoFactorMethods[number];
type TwoFactorMethod = (typeof twoFactorMethods)[number];
const isTwoFactorMethod = (method: string): method is TwoFactorMethod => twoFactorMethods.includes(method as TwoFactorMethod);

@ -40,7 +40,7 @@ const VideoConfContextProvider = ({ children }: { children: ReactNode }): ReactE
},
rejectIncomingCall: (callId: string): void => VideoConfManager.rejectIncomingCall(callId),
abortCall: (): void => VideoConfManager.abortCall(),
setPreferences: (prefs: Partial<typeof VideoConfManager['preferences']>): void => VideoConfManager.setPreferences(prefs),
setPreferences: (prefs: Partial<(typeof VideoConfManager)['preferences']>): void => VideoConfManager.setPreferences(prefs),
queryIncomingCalls: {
getCurrentValue: (): DirectCallParams[] => VideoConfManager.getIncomingDirectCalls(),
subscribe: (cb: () => void): Unsubscribe => VideoConfManager.on('incoming/changed', cb),

@ -33,12 +33,12 @@ const isDefaultStatus = (id: string): boolean => (Object.values(UserStatusEnum)
const isDefaultStatusName = (_name: string, id: string): _name is UserStatusEnum => isDefaultStatus(id);
const setStatus = (status: typeof userStatus.list['']): void => {
const setStatus = (status: (typeof userStatus.list)['']): void => {
AccountBox.setStatus(status.statusType, !isDefaultStatus(status.id) ? status.name : '');
callbacks.run('userStatusManuallySet', status);
};
const translateStatusName = (t: ReturnType<typeof useTranslation>, status: typeof userStatus.list['']): string => {
const translateStatusName = (t: ReturnType<typeof useTranslation>, status: (typeof userStatus.list)['']): string => {
if (isDefaultStatusName(status.name, status.id)) {
return t(status.name as TranslationKey);
}
@ -66,7 +66,7 @@ const UserDropdown = ({ user, onClose }: UserDropdownProps): ReactElement => {
const displayName = useUserDisplayName(user);
const filterInvisibleStatus = !useSetting('Accounts_AllowInvisibleStatusOption')
? (status: ValueOf<typeof userStatus['list']>): boolean => status.name !== 'invisible'
? (status: ValueOf<(typeof userStatus)['list']>): boolean => status.name !== 'invisible'
: (): boolean => true;
const handleCustomStatus = useMutableCallback((e) => {

@ -85,7 +85,7 @@ const commands = {
type CommandMessage<TCommandName extends keyof typeof commands = keyof typeof commands> = {
externalCommand: TCommandName;
} & Parameters<typeof commands[TCommandName]>[0];
} & Parameters<(typeof commands)[TCommandName]>[0];
window.addEventListener('message', <TCommandMessage extends CommandMessage>(e: MessageEvent<TCommandMessage>) => {
if (!settings.get<boolean>('Iframe_Integration_receive_enable')) {

@ -38,7 +38,7 @@ const roomTypeI18nMap = {
discussion: 'Discussion',
} as const;
const getRoomType = (room: IRoom): typeof roomTypeI18nMap[keyof typeof roomTypeI18nMap] | 'Teams_Public_Team' | 'Teams_Private_Team' => {
const getRoomType = (room: IRoom): (typeof roomTypeI18nMap)[keyof typeof roomTypeI18nMap] | 'Teams_Public_Team' | 'Teams_Private_Team' => {
if (room.teamMain) {
return room.t === 'c' ? 'Teams_Public_Team' : 'Teams_Private_Team';
}

@ -41,9 +41,9 @@ const periods = [
},
] as const;
export type Period = typeof periods[number];
export type Period = (typeof periods)[number];
export const getPeriod = (key: typeof periods[number]['key']): Period => {
export const getPeriod = (key: (typeof periods)[number]['key']): Period => {
const period = periods.find((period) => period.key === key);
if (!period) {
@ -54,7 +54,7 @@ export const getPeriod = (key: typeof periods[number]['key']): Period => {
};
export const getPeriodRange = (
key: typeof periods[number]['key'],
key: (typeof periods)[number]['key'],
utc = false,
): {
start: Date;

@ -186,7 +186,7 @@
"postcss-media-minmax": "^5.0.0",
"postcss-nested": "^5.0.6",
"postcss-url": "^10.1.3",
"prettier": "2.7.1",
"prettier": "~2.8.7",
"proxyquire": "^2.1.3",
"rewire": "^6.0.0",
"sinon": "^14.0.0",

@ -6,7 +6,7 @@
"@rocket.chat/eslint-config": "workspace:^",
"eslint": "^8.29.0",
"mongodb": "^4.12.1",
"prettier": "^2.7.1",
"prettier": "~2.8.7",
"typescript": "~5.0.2"
},
"scripts": {

@ -6,7 +6,7 @@
"@rocket.chat/eslint-config": "workspace:^",
"eslint": "^8.29.0",
"mongodb": "^4.12.1",
"prettier": "^2.7.1",
"prettier": "~2.8.7",
"typescript": "~5.0.2"
},
"scripts": {

@ -13,7 +13,7 @@
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.9.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "2.7.1"
"prettier": "~2.8.7"
},
"scripts": {
"lint": "eslint --ext .js .",

@ -81,7 +81,7 @@
"lint-staged": "~12.3.3",
"normalize.css": "^8.0.1",
"npm-run-all": "^4.1.5",
"prettier": "~2.5.1",
"prettier": "~2.8.7",
"react-dom": "^17.0.2",
"rimraf": "^3.0.2",
"tslib": "^2.3.1",

@ -6,7 +6,7 @@
"@rocket.chat/eslint-config": "workspace:^",
"eslint": "^8.29.0",
"mongodb": "^4.12.1",
"prettier": "^2.7.1",
"prettier": "~2.8.7",
"typescript": "~5.0.2"
},
"scripts": {

@ -6521,7 +6521,7 @@ __metadata:
eslint: ^8.29.0
fibers: ^5.0.3
mongodb: ^4.12.1
prettier: ^2.7.1
prettier: ~2.8.7
typescript: ~5.0.2
languageName: unknown
linkType: soft
@ -6537,7 +6537,7 @@ __metadata:
"@rocket.chat/ui-kit": next
eslint: ^8.29.0
mongodb: ^4.12.1
prettier: ^2.7.1
prettier: ~2.8.7
typescript: ~5.0.2
languageName: unknown
linkType: soft
@ -6686,7 +6686,7 @@ __metadata:
eslint-plugin-import: ^2.26.0
eslint-plugin-jest: ^26.9.0
eslint-plugin-prettier: ^4.2.1
prettier: 2.7.1
prettier: ~2.8.7
languageName: unknown
linkType: soft
@ -6837,7 +6837,7 @@ __metadata:
lint-staged: ~12.3.3
normalize.css: ^8.0.1
npm-run-all: ^4.1.5
prettier: ~2.5.1
prettier: ~2.8.7
react-dom: ^17.0.2
rimraf: ^3.0.2
tslib: ^2.3.1
@ -6962,7 +6962,7 @@ __metadata:
"@rocket.chat/models": "workspace:^"
eslint: ^8.29.0
mongodb: ^4.12.1
prettier: ^2.7.1
prettier: ~2.8.7
typescript: ~5.0.2
languageName: unknown
linkType: soft
@ -7405,7 +7405,7 @@ __metadata:
postcss-nested: ^5.0.6
postcss-url: ^10.1.3
postis: ^2.2.0
prettier: 2.7.1
prettier: ~2.8.7
prom-client: ^14.0.1
prometheus-gc-stats: ^0.6.3
proxy-from-env: ^1.1.0
@ -31593,15 +31593,6 @@ __metadata:
languageName: node
linkType: hard
"prettier@npm:2.7.1, prettier@npm:^2.7.1":
version: 2.7.1
resolution: "prettier@npm:2.7.1"
bin:
prettier: bin-prettier.js
checksum: 55a4409182260866ab31284d929b3cb961e5fdb91fe0d2e099dac92eaecec890f36e524b4c19e6ceae839c99c6d7195817579cdffc8e2c80da0cb794463a748b
languageName: node
linkType: hard
"prettier@npm:>=2.2.1 <=2.3.0":
version: 2.3.0
resolution: "prettier@npm:2.3.0"
@ -31611,12 +31602,12 @@ __metadata:
languageName: node
linkType: hard
"prettier@npm:~2.5.1":
version: 2.5.1
resolution: "prettier@npm:2.5.1"
"prettier@npm:~2.8.7":
version: 2.8.7
resolution: "prettier@npm:2.8.7"
bin:
prettier: bin-prettier.js
checksum: 21b9408476ea1c544b0e45d51ceb94a84789ff92095abb710942d780c862d0daebdb29972d47f6b4d0f7ebbfb0ffbf56cc2cfa3e3e9d1cca54864af185b15b66
checksum: fdc8f2616f099f5f0d685907f4449a70595a0fc1d081a88919604375989e0d5e9168d6121d8cc6861f21990b31665828e00472544d785d5940ea08a17660c3a6
languageName: node
linkType: hard

Loading…
Cancel
Save