@casomoltd/tooling 0.21.0 → 0.21.1

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.
@@ -7,8 +7,12 @@ module.exports = {
7
7
  plugins: [
8
8
  {
9
9
  rules: {
10
- 'no-ai-attribution': ({ header, body }) => {
11
- const fullMessage = `${header}\n${body || ''}`.toLowerCase();
10
+ 'no-ai-attribution': ({ header, body, footer }) => {
11
+ // `footer` matters: the parser files trailers like
12
+ // `Co-Authored-By: …` there, not under `body`, so a header+body
13
+ // check misses exactly the line this rule exists to catch. (Not
14
+ // `raw`: under `git commit -v` that can carry the whole diff.)
15
+ const fullMessage = `${header}\n${body || ''}\n${footer || ''}`.toLowerCase();
12
16
  const forbidden = ['anthropic', 'claude', 'co-authored-by'];
13
17
  const found = forbidden.filter((term) => fullMessage.includes(term));
14
18
  return [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@casomoltd/tooling",
3
- "version": "0.21.0",
3
+ "version": "0.21.1",
4
4
  "description": "Casomo's shared dev config: ESLint, Prettier, commitlint, knip & jscpd presets and dev CLIs (git hooks, readability, screenshots)",
5
5
  "license": "MIT",
6
6
  "repository": {