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

feat(eslint-plugin): [no-base-to-string] add option to ignore tagged templates #1763

Conversation

susisu
Copy link
Contributor

@susisu susisu commented Mar 18, 2020

Fixes #1757

This PR adds an option ignoreTaggedTemplateExpressions to no-base-to-string rule, as suggested in #1757 (comment).

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @susisu!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day.

@bradzacher bradzacher added the enhancement: plugin rule option New rule option for an existing eslint-plugin rule label Mar 18, 2020
@codecov
Copy link

codecov bot commented Mar 20, 2020

Codecov Report

Merging #1763 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #1763   +/-   ##
=======================================
  Coverage   94.48%   94.48%           
=======================================
  Files         162      162           
  Lines        7491     7494    +3     
  Branches     2149     2151    +2     
=======================================
+ Hits         7078     7081    +3     
  Misses        178      178           
  Partials      235      235           
Flag Coverage Δ
#unittest 94.48% <100.00%> (+<0.01%) ⬆️
Impacted Files Coverage Δ
...kages/eslint-plugin/src/rules/no-base-to-string.ts 100.00% <100.00%> (ø)

bradzacher
bradzacher previously approved these changes Apr 12, 2020
Copy link
Member

@bradzacher bradzacher left a comment

Choose a reason for hiding this comment

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

ezpz!
LGTM, thanks for this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement: plugin rule option New rule option for an existing eslint-plugin rule
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[no-base-to-string] False positive for tagged tepmplates
2 participants