Fix: Corrected Typo. Replaces #63#80
Fix: Corrected Typo. Replaces #63#80MarkKragerup wants to merge 2 commits intoeslint-community:mainfrom
Conversation
|
Since this is part of a rule, it seems like this typo should be causing a bug. Can you please create a test that shows the bug is fixed? |
|
Isn't it hard to show an error that is fixed with a test? i can only assume that the tests still work to show that all intended functionality is still there. That being said, this correction is correct, according to the Node.js documentation on buffer (https://nodejs.org/api/buffer.html#bufreaddoublebeoffset). There is no |
|
You should be able to write a test that fails without this fix and passes when the fix is applied. Without doing so, we can’t really know if there was a problem with this code or if the proposed fix actually solves a problem. |
|
What I’m describing is common practice in programming. Write a test that fails to makes the bug obvious and then write some code to make the test pass. In this case, the rule checks the array here: So you should write a test that checks This is the way we prevent regressions. |
|
In the interest of time I fixed this myself. |

I don't know why #63 has a merge conflict. It does indeed look like a single letter is missing from that string. This PR should be mergeable. @nzakas can you merge and close #63 ?