lib,tools: rename functions named value#57901
Conversation
|
Review requested:
|
|
it'd be great to get a PR that just fixes the |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #57901 +/- ##
==========================================
+ Coverage 90.05% 90.07% +0.02%
==========================================
Files 714 714
Lines 225876 225956 +80
Branches 42737 42739 +2
==========================================
+ Hits 203408 203541 +133
+ Misses 14244 14202 -42
+ Partials 8224 8213 -11
🚀 New features to boost your workflow:
|
8345a46 to
c969ef7
Compare
|
Hello, I've worked on the eslint rule for this one, i've just made some changes with the eslint's You can check the work here: lib-name-functions Let me know if you guys have any thoughts on this :>, and if all is good, i could send a PR to this PR's branch. |
|
@louiellan sorry for the late response.
Yes, the code in your branch LGTM!
Small adjustments:
- the test's filename should start with `test-`, i.e. `func-name-matching.test.js` should be renamed to something like `test-eslint-func-name-matching.js`.
- i think the `@author` comments should be in separate lines (with multiple `@author` tags) rather than comma-separated.
Please feel free to open a PR either against this branch, or directly against main branch (not preserving my commit is also okay). Or i can merge your commits into this PR once am on PC (probably mid-August). Thank you!
|
|
@LiviaMedeiros I've made the adjustments and here's the pull request to your branch, LiviaMedeiros#1 |
8403844 to
cb53cff
Compare
valuevalue
This comment was marked as outdated.
This comment was marked as outdated.
|
Hello, feel free to ping me if this needs to be merged, this might be blocked because of the |
|
@louiellan apologies for late response and thank you! |
|
Now that you mentioned it, I realized that i only handled the explicit naming but not the concise notation functions (I'll work on it) but we still need to have a separate as per submitting the rule to eslint, we'll need to make non-nodejs one (will work on it as well, I'll just mention you there and reference also the issue you made) |
063d3e0 to
d2280cc
Compare
Signed-off-by: LiviaMedeiros <livia@cirno.name>
with the node-core/func-name-matching rule
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Co-authored-by: Louie Llaneta <louie.lou.llaneta@gmail.com>
d2280cc to
55163d9
Compare
Refs: #57899
This PR adds a
node-core/func-name-matchinglinter rule that correctly handles defining properties with functions asvalue, and fixes the function names accordingly.Authored by @louiellan