-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(eslint-plugin): add new rule restrict-plus-operands #70
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): add new rule restrict-plus-operands #70
Conversation
(shouldn't this be a feat?) |
it should i have some concerns about performance for now, i will have to digg in a little to check if this is not related to ts-estree |
packages/eslint-plugin-typescript/lib/rules/restrict-plus-operands.js
Outdated
Show resolved
Hide resolved
I think looking to land this after the first release would be best 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that v1 is out the door we can consider merging this.
@armano2 Can you elaborate on the performance concerns, and what has changed since you first opened the PR?
i did profiling on this rule, and there is no performance impact generated by our code, TypeCheker is not fast, and most likely there is some room to improve it in |
Ok great, thanks |
Codecov Report
@@ Coverage Diff @@
## master #70 +/- ##
==========================================
+ Coverage 95.01% 95.14% +0.12%
==========================================
Files 48 49 +1
Lines 2487 2512 +25
Branches 382 382
==========================================
+ Hits 2363 2390 +27
+ Misses 75 73 -2
Partials 49 49
|
This PR implement rule
restrict-plus-operands
continuation of bradzacher/eslint-plugin-typescript#230