Repository navigation
v0.3.0
New rule: comment-policy/no-consecutive-comments
Flags several stand-alone comments stacked one after another, encouraging merging or removing redundant annotations.
Options (defaults):
```js
["error", { types: ["line", "block"], max: 1, skipBlankLines: true, protectedPatterns: [] }]
```
- `types` — which comment kinds participate in a run: `line` (`//`) and/or `block` (`/* /`). A multi-line `/ */` counts as one comment.
- `max` (default `1`) — how many consecutive comments are allowed; a longer run is reported.
- `skipBlankLines` (default `true`) — comments separated only by blank lines still count as consecutive; set `false` to let a blank line break the run.
- `protectedPatterns` — comments matching a pattern are excluded from runs.
Report-only (no autofix). Included in the `recommended` config.
Full Changelog: v0.1.1...v0.3.0