Skip to content
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

deps: Bump the typescript-eslint group with 2 updates #299

Merged
merged 2 commits into from
Nov 11, 2024
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
4 changes: 2 additions & 2 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"dependencies": {
"@eslint/js": "9.14.0",
"@typescript-eslint/utils": "8.12.2",
"@typescript-eslint/utils": "8.13.0",
"diff-match-patch": "1.0.5",
"eslint": "9.14.0",
"eslint-config-flat-gitignore": "0.3.0",
Expand All @@ -44,7 +44,7 @@
"globals": "15.12.0",
"prettier": "3.3.3",
"synckit": "0.9.2",
"typescript-eslint": "8.12.2"
"typescript-eslint": "8.13.0"
},
"peerDependencies": {
"@next/eslint-plugin-next": "^15.0.0",
Expand Down
15 changes: 10 additions & 5 deletions packages/eslint-config/src/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ export async function react(config: ReactConfig): Promise<Array<FlatConfig.Confi
(await import(
// @ts-expect-error no types available
"@next/eslint-plugin-next"
)) as unknown as { default: FlatConfig.Plugin }
)) as unknown as {
default: FlatConfig.Plugin & {
configs: Record<string, FlatConfig.Config>;
};
}
).default
: undefined;

Expand Down Expand Up @@ -67,10 +71,11 @@ export async function react(config: ReactConfig): Promise<Array<FlatConfig.Confi
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",

...((pluginJSXA11y as FlatConfig.Plugin).configs?.strict?.rules as Record<
string,
string
>),
...((
pluginJSXA11y as FlatConfig.Plugin & {
configs: Record<string, FlatConfig.Config>;
}
).configs?.strict?.rules as Record<string, string>),

"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
Expand Down