Skip to content

Conversation

@JounQin
Copy link

@JounQin JounQin commented Mar 29, 2025

@amilajack
Copy link
Owner

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Comment on lines +19 to 23
export default defineConfig([
includeIgnoreFile(gitignorePath),
eslint.configs.recommended,
...tseslint.configs.recommended,
tseslint.configs.recommended,
eslintPlugin.configs["flat/recommended"],

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P1] Spread TypeScript ESLint configs in flat config array

tseslint.configs.recommended returns a FlatConfigArray. After switching to defineConfig, it is now inserted as a single array element ([ …, tseslint.configs.recommended, … ]), so ESLint receives a nested array instead of individual config objects and will error when loading the config. Spread the configs (...tseslint.configs.recommended) so the array is flattened.

Useful? React with 👍 / 👎.

Comment on lines 24 to 28
compat.configs["flat/recommended"],
importX.flatConfigs.recommended,
importX.flatConfigs.typescript,
eslintConfigPrettier,
{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P1] Spread Prettier flat config to avoid nested array

eslint-config-prettier/flat also exports an array of flat configs. Adding it directly to the exported config list yields [ ..., importX.flatConfigs.typescript, eslintConfigPrettier, … ], which passes a nested array to ESLint and prevents the Prettier overrides from loading. Use ...eslintConfigPrettier so each entry is merged at the top level.

Useful? React with 👍 / 👎.

- Remove deprecated 'extensions' and 'useEslintrc' properties from ESLint options
- Remove unnecessary @ts-expect-error directives that are no longer needed
- Fixes TypeScript compilation errors in e2e tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants