Skip to content

chore(deps): update eslint #6957

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions configs/eslint-config-compass/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
"@babel/eslint-parser": "^7.14.3",
"@mongodb-js/eslint-config-devtools": "^0.9.9",
"@mongodb-js/eslint-plugin-compass": "^1.2.9",
"@typescript-eslint/eslint-plugin": "^8.34.0",
"@typescript-eslint/parser": "^8.34.0",
"@typescript-eslint/eslint-plugin": "^8.35.1",
"@typescript-eslint/parser": "^8.35.1",
"eslint": "^8.57.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-chai-friendly": "^1.1.0",
"eslint-plugin-filename-rules": "^1.2.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-mocha": "^8.0.0",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^4.6.2"
"eslint-plugin-react-hooks": "^5.2.0"
},
"scripts": {
"prettier": "prettier-compass",
Expand Down
329 changes: 155 additions & 174 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@
"cheerio": "1.0.0-rc.10"
},
"@mongodb-js/eslint-config-devtools": {
"@typescript-eslint/eslint-plugin": "^8.34.0",
"@typescript-eslint/parser": "^8.34.0",
"@typescript-eslint/eslint-plugin": "^8.35.1",
"@typescript-eslint/parser": "^8.35.1",
"eslint": "^8.57.1",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^4.6.2"
"eslint-plugin-react-hooks": "^5.2.0"
}
}
}
4 changes: 2 additions & 2 deletions packages/compass-collection/src/plugin-tab-title.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type PluginTitleProps = {
} & WorkspaceTabCoreProps &
WorkspacePluginProps<typeof CollectionWorkspaceTitle>;

function _PluginTitle({
function PluginTitle({
editViewName,
isNonExistent,
isReadonly,
Expand Down Expand Up @@ -84,4 +84,4 @@ export const CollectionPluginTitleComponent = connect(
isReadonly: state.metadata?.isReadonly,
sourceName: state.metadata?.sourceName,
})
)(_PluginTitle);
)(PluginTitle);
2 changes: 0 additions & 2 deletions packages/compass-components/src/components/leafygreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ import { Tabs, Tab } from '@leafygreen-ui/tabs';
import TextArea from '@leafygreen-ui/text-area';
import LeafyGreenTextInput from '@leafygreen-ui/text-input';
import { SearchInput } from '@leafygreen-ui/search-input';
export type { ToastProps } from '@leafygreen-ui/toast';
export { ToastProvider, useToast } from '@leafygreen-ui/toast';
export { usePrevious, useMergeRefs } from '@leafygreen-ui/hooks';
import Toggle from '@leafygreen-ui/toggle';
import Tooltip from '@leafygreen-ui/tooltip';
Expand Down
6 changes: 4 additions & 2 deletions packages/compass-components/src/hooks/use-confirmation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ const hideButtonStyles = css({
display: 'none !important',
});

const _ConfirmationModalArea: React.FunctionComponent = ({ children }) => {
const ConfirmationModalStateHandler: React.FunctionComponent = ({
children,
}) => {
const [confirmationProps, setConfirmationProps] = useState<
Partial<ConfirmationProperties> & { open: boolean; confirmationId: number }
>({
Expand Down Expand Up @@ -205,7 +207,7 @@ export const ConfirmationModalArea: React.FunctionComponent = ({

return (
<ConfirmationModalAreaMountedContext.Provider value={true}>
<_ConfirmationModalArea>{children}</_ConfirmationModalArea>
<ConfirmationModalStateHandler>{children}</ConfirmationModalStateHandler>
</ConfirmationModalAreaMountedContext.Provider>
);
};
Expand Down
8 changes: 4 additions & 4 deletions packages/compass-components/src/hooks/use-toast.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, { useContext, useEffect, useMemo, useRef } from 'react';
import type { ToastProps } from '../components/leafygreen';
import type { ToastProps } from '@leafygreen-ui/toast';
import {
ToastProvider,
useToast as useLeafygreenToast,
} from '../components/leafygreen';
} from '@leafygreen-ui/toast';
import { useStackedComponent } from './use-stacked-component';
import { css } from '..';

Expand Down Expand Up @@ -150,7 +150,7 @@ export const openToast = toastState.openToast.bind(toastState);
*/
export const closeToast = toastState.closeToast.bind(toastState);

const _ToastArea: React.FunctionComponent = ({ children }) => {
const ToastStateHandler: React.FunctionComponent = ({ children }) => {
// NB: the way leafygreen implements this hook leads to anything specifying
// toast methods in hooks dependencies to constantly update potentially
// causing infinite loops of toasts. To work around that we are storing toast
Expand Down Expand Up @@ -207,7 +207,7 @@ export const ToastArea: React.FunctionComponent = ({ children }) => {
return (
<ToastAreaMountedContext.Provider value={true}>
<ToastProvider portalClassName={stackedElemStyles}>
<_ToastArea>{children}</_ToastArea>
<ToastStateHandler>{children}</ToastStateHandler>
</ToastProvider>
</ToastAreaMountedContext.Provider>
);
Expand Down