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

A file that should be ignored, but throws Definition for rule was not found #797

Closed
Hazmi35 opened this issue Jan 27, 2024 · 1 comment · Fixed by #798
Closed

A file that should be ignored, but throws Definition for rule was not found #797

Hazmi35 opened this issue Jan 27, 2024 · 1 comment · Fixed by #798

Comments

@Hazmi35
Copy link
Owner

Hazmi35 commented Jan 27, 2024

When using a // eslint-disable any-plugin/any-rule in a TypeScript project, all the config ignores them but ESLint still tried to process them outputing something like: Definition for rule '@typescript-eslint/no-unsafe-member-access' was not found @typescript-eslint/no-unsafe-member-access.

This is unintended error. ESLint should ignores the dist folder regardless if any config doesn't match them.

The reason why this happens is because the global ignores is different than the ignores from a config. See https://eslint.org/docs/latest/use/configure/configuration-files-new#globally-ignoring-files-with-ignores.

@Hazmi35 Hazmi35 changed the title Add global ignore config A file that should be ignored, but throws Definition for rule was not found Jan 27, 2024
@Hazmi35
Copy link
Owner Author

Hazmi35 commented Jan 27, 2024

To fix this, you can either:

@Hazmi35 Hazmi35 closed this as completed Jan 27, 2024
@Hazmi35 Hazmi35 linked a pull request Jan 27, 2024 that will close this issue
@Hazmi35 Hazmi35 pinned this issue Jan 27, 2024
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 a pull request may close this issue.

1 participant