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
Updates #132
Updates #132
Conversation
This all looks great! I want to take a closer look at the |
Re: Btw, I also added a target Node version for Re: eventually removing Babel, while it is nice one can more easily go that route these days, there still seem to be a good steady stream of very appealing features, like optional chaining or the null coalescing operator, so I'm personally hesitant to drop it in my own projects as a result. :-) |
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.
Thank you! Sorry for the delay. This all looks good to me. I've added a comment about the source maps. After that gets answered I'm 100% cool with this change.
I've also created a commit on master that would have caught the breaking change to the default export.
Thank you! This all looks awesome.
@@ -3,9 +3,9 @@ | |||
"version": "0.5.0", | |||
"description": "ESLint plugin to prevent use of extended native objects", | |||
"scripts": { | |||
"compile": "babel src --out-dir rules", | |||
"compile": "babel src --source-maps --out-dir rules", |
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.
What's the value of of creating the source maps? Does this help consumers of this plugin? Or is it to help with local development?
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.
If there is an error, the user (if a technical enough user) will know the exact line in source to find the problem, and if not a technical user, if they report the trace to the project, it will make it faster for us to find the problem.
It also helps with testing coverage so long as your tests are pointing to rules
rather than src
--ensuring that if there are any problems (now with 100% coverage, that would only be for regressions) the proper line numbers would be shown. (While you could point to src
in the test file, an advantage of keeping it as is is that it can fail if there are build problems.)
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.
WHOA! I didn't know Node added support to use source maps in stack traces. That is amazing. Thank you for sharing! I've been out of the loop on Node stuff. :)
…o avoid showing errors for ignored files
…ck Node 12 and 14 in Travis
…yExpression` (brings to 100% coverage)
I've also rebased, and it is indeed nice to see full coverage including |
Thank you for all of the enhancements! |
Thank you very much for the reviews! |
Let me know if and what of these you need in separate PRs (not too many line changes though).
right
ofBinaryExpression
is itself aBinaryExpression
(brings to 100% coverage)--ignore-pattern
to ignore file, allowing IDEs to avoid showing errors for ignored files