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

Make the '@typescript-eslint/explicit-function-return-type' rule lint .ts/.tsx files only #18

Closed
wants to merge 1 commit into from

Conversation

yangmingshan
Copy link

Current in a mixed JS/TS codebase (which is common), you will get unfixable lint errors reported within .js/.jsx files.

Documentation: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/explicit-function-return-type.md#configuring-in-a-mixed-jsts-codebase

@sindresorhus
Copy link
Member

I think you should rather use overrides yourself and only extend this shareable config for TS files. It’s not meant for JS files.

@yangmingshan
Copy link
Author

You have your point, I'm closing this PR.

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.

None yet

2 participants