Skip to content

Commit 8febd66

Browse files
Copilotd10c
andcommitted
Fix eslint config: restore .flat accessor for reactHooks.configs
The previous change removed the .flat accessor which caused ESLint to use the old eslintrc format config (with plugins as array of strings) instead of the flat config format (with plugins as object). This led to CI failures. Co-authored-by: d10c <9970661+d10c@users.noreply.github.com>
1 parent ffac626 commit 8febd66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/ql-vscode/eslint.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export default tseslint.config(
109109
extends: [
110110
react.configs.flat.recommended,
111111
react.configs.flat['jsx-runtime'],
112-
reactHooks.configs['recommended-latest'],
112+
reactHooks.configs.flat['recommended-latest'],
113113
storybook.configs['flat/recommended'],
114114
github.getFlatConfigs().react,
115115
],
@@ -128,7 +128,7 @@ export default tseslint.config(
128128
extends: [
129129
react.configs.flat.recommended,
130130
react.configs.flat['jsx-runtime'],
131-
reactHooks.configs['recommended-latest'],
131+
reactHooks.configs.flat['recommended-latest'],
132132
github.getFlatConfigs().react,
133133
],
134134
settings: {

0 commit comments

Comments
 (0)