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

Apply the @typescript-eslint/eslint-recommended rules to .gts files #475

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

Windvis
Copy link
Contributor

@Windvis Windvis commented Mar 11, 2024

By default these rules are only applied to a whitelist of extensions, and .gts isn't part of that. To work around that issue we apply the rules ourselves for now.

This fixes an issue we noticed in #474

Windvis added 2 commits March 11, 2024 13:57
By default these rules are only applied to a whitelist of extensions, and .gts isn't part of that. To work around that issue we apply the rules ourselves for now.
@@ -16,11 +21,12 @@ module.exports = {
// ts files
{
files: ['**/*.{gts,ts}'],
extends: [
'plugin:@typescript-eslint/eslint-recommended',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is already part of the @typescript-eslint/recommended config, and we don't really need it in either case, since we include the rules ourselves now.

@Windvis Windvis merged commit a513a4c into master Mar 11, 2024
8 checks passed
@Windvis Windvis deleted the chore/fix-eslint-gts-setup branch March 11, 2024 13:43
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.

1 participant