Add v8 to the `ignorePattern` for `capitalized-comments`
closes: https://github.com/xojs/xo/issues/765
V8 is Google's JS engine and allows for [native code coverage](https://v8.dev/blog/javascript-code-coverage). But in order to ignore lines from being gathered the string must be lowercase.
```diff
- /* V8 ignore next 3 */ <--- as the default capitalized-comments rule would change
+ /* v8 ignore next 3 */
```
Source: https://vitest.dev/guide/coverage.html#ignoring-code
Further context: https://eslint.org/docs/latest/rules/capitalized-comments
合并状态:已合并 合并于 2024-08-05 关闭于 2024-08-05 0 条评论