You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there @sindresorhus , thanks for the info - however I didn't fully understand what you meant by "the whole string". I went ahead on opening the PR, hoping that we can refine together what was meant.
The comments to skip lines from being gathered into coverage by v8 will look something like this:
/* v8 ignore next 3 */
For example to ignore the "next 3 lines". There are also other key words in order to just skip the else or similar thing, but I didn't find a good comprehensive list of what is possible.
I have tested it in my other repos and indeed v8 works but V8 will not. So v8 has to be ignored if it stands at the beginning of a comment string.
Furthermore I wanted to check on testing - I ran npm test and everything went fine, however I am not sure I understand what it is actually testing. I was expecting test cases that expect and assert strings before and after they went through the XO config and check if the intended outcome was performed by the rules set. --> If this is wanted, I am happy to add tests.
Lastly to your point on waiting for flat config, that is totally fine with me, I'm really looking forward to the change and won't get in the way 😄
Hey there, I would like to allow
v8
alongside the already existingc8
(xojs/eslint-config-xo@dea9534 / xojs/eslint-config-xo#65) - so that it can be used in ignore comments for@vitest/coverage-v8
.https://github.com/xojs/eslint-config-xo/blob/a09d65618cc83ac27eba9dc5b85423c26807e9ac/index.js#L305
Are you ok with this change, then I'm happy to whip up a PR.
Thanks in advance
Best
The text was updated successfully, but these errors were encountered: