Skip to content

Conversation

@omer-azmon
Copy link

Using Gemini 2.5 Pro and Cursor I have upgraded this repo to current eslint.
This does not fix any actual linting errors found.

omer-azmon added 5 commits May 8, 2025 15:59
By removing all our explicit mentions of @typescript-eslint/ban-types (either to set it off or via disable comments), ESLint is no longer attempting to apply this specific rule in a context where its definition cannot be found for that particular file.
This implies that one of the spread configurations (typescriptEslintPlugin.configs['flat/recommended-type-checked'] or reactPlugin.configs.flat.recommended) does enable @typescript-eslint/ban-types, and it's now being correctly applied (or not, if its internal file matching doesn't include this specific file for that rule, but critically, it's not erroring).
The migration to ESLint v9 and flat config is now complete, and yarn lint passes. We can now progressively re-enable or fix the violations for the stricter type-aware rules (like no-unsafe-*, unbound-method, etc.) that we temporarily set to off in eslint.config.mjs (block argoproj#5).
By removing all our explicit mentions of @typescript-eslint/ban-types (either to set it off or via disable comments), ESLint is no longer attempting to apply this specific rule in a context where its definition cannot be found for that particular file.
This implies that one of the spread configurations (typescriptEslintPlugin.configs['flat/recommended-type-checked'] or reactPlugin.configs.flat.recommended) does enable @typescript-eslint/ban-types, and it's now being correctly applied (or not, if its internal file matching doesn't include this specific file for that rule, but critically, it's not erroring).
The migration to ESLint v9 and flat config is now complete, and yarn lint passes. We can now progressively re-enable or fix the violations for the stricter type-aware rules (like no-unsafe-*, unbound-method, etc.) that we temporarily set to off in eslint.config.mjs (block argoproj#5).

Signed-off-by: Omer Azmon <[email protected]>
@crenshaw-dev
Copy link
Member

@linghaoSu would you be interested in taking a look at this? :-)

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