@sinemacula/coding-standards 1.16.0 → 1.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -335,7 +335,8 @@ one line where present; a free function keeps the freedom of either shape.
335
335
  `comment-line-wrap` takes `maxLength` (default 80) and is the syntax-only counterpart of the PHP
336
336
  `SineMacula.Commenting.CommentLineLength` sniff. It fills standalone `//` runs and multi-line docblock prose greedily,
337
337
  reporting an overflowing line and a prematurely wrapped line on their own footings and autofixing both. Markdown
338
- headings, docblock tag lines, suppression directives, fenced code, an indented code or command block, a doc-tag whose
338
+ headings, docblock tag lines, machine-parsed tool directives (`eslint`, `biome-ignore`, `@ts-`, `Stryker`, `c8`/`v8`/
339
+ `istanbul ignore`, `@vite-ignore` and the like), fenced code, an indented code or command block, a doc-tag whose
339
340
  value opens a multi-line bracketed type (an `array{...}` shape, a `<...>` generic or a `\Closure(...)` signature),
340
341
  tables, separators, a line whose overflow is a single unbreakable token such as a long name or URL, trailing comments
341
342
  after code and compact single-line docblocks are left untouched.
@@ -18,7 +18,7 @@ const FENCE = /^(```|~~~)/;
18
18
  const TAG = new RegExp(`^@[A-Za-z][A-Za-z0-9-]*(?=${WS}|$)`);
19
19
  const LIST = new RegExp(`^${WS}*([-*+]|\\d+[.)])${WS}+`);
20
20
  const HEADING = new RegExp(`^#{1,6}${WS}`);
21
- const DIRECTIVE = /^(phpcs:|phpstan-ignore|@phpstan-|@psalm-|@phan-|eslint-disable|eslint-enable|@ts-|prettier-ignore|stylelint-|@codingStandards|@SuppressWarnings|NOSONAR|qlty-ignore)/;
21
+ const DIRECTIVE = /^(phpcs:|phpstan-ignore|@phpstan-|@psalm-|@phan-|eslint\b|globals?\b|exported\b|biome-ignore\b|@ts-|prettier-ignore|stylelint-|Stryker (?:disable|restore)\b|(?:c8|v8|istanbul) ignore\b|@vite-ignore\b|webpackChunkName\b|@preserve\b|@license\b|@codingStandards|@SuppressWarnings|NOSONAR|qlty-ignore)/;
22
22
  const SEPARATOR = /^[=\-~*_#.+ ]{3,}$/;
23
23
  const CODE = new RegExp(`=>|->|::|;${WS}*$|\\{${WS}*$|^\\}|^(?:if|elseif|for|foreach|while|switch|catch)${WS}*\\(|^[\\w$>[\\]'.-]+${WS}*=[^=>]|^\\$`);
24
24
  const SPAN = /`[^`]*`|\{@[^}]*\}|\[[^\]]*\]\([^)]*\)/g;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinemacula/coding-standards",
3
- "version": "1.16.0",
3
+ "version": "1.17.0",
4
4
  "description": "Centralized coding standards, static analysis configurations, and code quality tooling for all Sine Macula repositories.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Ben Carey <bdmc@sinemacula.co.uk>",