Skip to content

Commit

Permalink
chore(deps): update typescript-eslint monorepo to v6 (major) (#916)
Browse files Browse the repository at this point in the history
* chore(deps): update typescript-eslint monorepo to v6

* chore: update config and apply changes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Robb Niznik <rniznik@launchdarkly.com>
  • Loading branch information
renovate[bot] and Niznikr authored Jul 12, 2023
1 parent f8dbccc commit 0c47ff1
Show file tree
Hide file tree
Showing 10 changed files with 159 additions and 11 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module.exports = {
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/stylistic',
'plugin:import/recommended',
'plugin:import/typescript',
'plugin:jsx-a11y/recommended',
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
"@types/react": "^18.2.8",
"@types/react-dom": "^18.2.4",
"@types/testing-library__jest-dom": "^5.14.3",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vanilla-extract/css": "^1.12.0",
"@vanilla-extract/vite-plugin": "^3.8.2",
"@vitejs/plugin-react-swc": "^3.3.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/menu/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const handleKeyboardInteractions = (
};

const chainEventHandlers =
(...handlers: Array<EventHandler<SyntheticEvent> | undefined>) =>
(...handlers: (EventHandler<SyntheticEvent> | undefined)[]) =>
(event: SyntheticEvent) => {
handlers.forEach((h) => typeof h === 'function' && h(event));
};
Expand Down
2 changes: 1 addition & 1 deletion packages/modal/src/ModalContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const overlay: Variants = {
hidden: { opacity: 0 },
};

const transitions: { [key: string]: Variants } = {
const transitions: Record<string, Variants> = {
desktopPop: {
hidden: { opacity: 0, scale: 0.9 },
visible: { opacity: 1, scale: 1, transition: { type: 'spring', delay: 0.1, duration: 0.15 } },
Expand Down
1 change: 1 addition & 0 deletions packages/select/src/SelectItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const SelectItem = <T extends object, P extends ElementType = 'div'>(

SelectItem.getCollectionNode = function* getCollectionNode<T extends object>(
props: ItemProps<T>,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
context: any
) {
const rendered = props.title || props.children;
Expand Down
1 change: 1 addition & 0 deletions packages/select/src/SingleSelect/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ type SingleSelection = {
/** The initial selected keys in the collection (uncontrolled). */
defaultSelectedKey?: Key;
/** Handler that is called when the selection changes. */
// eslint-disable-next-line @typescript-eslint/no-explicit-any
onSelectionChange?: (key: Key) => any;
};

Expand Down
2 changes: 1 addition & 1 deletion packages/tab-list/src/TabList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type TabListProps<T extends string | number> = AriaTabListProps<HTMLDivElement>
/** CSS classes to pass into the TabList wrapper div. */
className?: string;
/** The children passed into the TabList. This is a react-stately Item with JSX children. */
children: ItemElement<ReactNode> | Array<ItemElement<ReactNode>>;
children: ItemElement<ReactNode> | ItemElement<ReactNode>[];
/** Array of any disabled Tabs in the grouping. */
disabledTabs?: string[];
/** Called when the user clicks on a different tab */
Expand Down
1 change: 1 addition & 0 deletions packages/tag/src/Tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ const Tag = <T extends object>(props: TagProps<T>) => {
data-test-id="remove-tag-btn"
onClick={(e) => {
e.stopPropagation();
// eslint-disable-next-line @typescript-eslint/no-explicit-any
removeButtonProps.onPress?.(undefined as any);
}}
{...removeButtonProps}
Expand Down
1 change: 1 addition & 0 deletions packages/tag/src/TagItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const TagItem = <T extends object, P extends ElementType = 'div'>(

TagItem.getCollectionNode = function* getCollectionNode<T extends object>(
props: ItemProps<T>,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
context: any
) {
const rendered = props.title || props.children;
Expand Down
155 changes: 149 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0c47ff1

Please sign in to comment.