Skip to content

chore: sync to node-red-standards v0.3.3 (AGENTS block + .gitattributes) - #493

Merged
windkh merged 1 commit into
masterfrom
chore/standards-sync-v0.3.3
Aug 4, 2026
Merged

chore: sync to node-red-standards v0.3.3 (AGENTS block + .gitattributes)#493
windkh merged 1 commit into
masterfrom
chore/standards-sync-v0.3.3

Conversation

@windkh

@windkh windkh commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Supersedes #489 (which conflicted because an earlier manual sync applied an older, simpler rule set).

Regenerated from the central standard v0.3.3 via nrstd sync --write on top of current master:

  • Adds .gitattributes (* text=auto eol=lf) — fixes format:check going red locally on Windows (core.autocrlf=true) while CI stays green on Linux. Local and CI results now match on every platform.
  • Refreshes the AGENTS.md managed block to v0.3.3: expanded single-exit rule (no guard clauses; validate by nesting; throw is the one allowed non-return exit), "no defensive programming", the ESLint 10 recommended additions (no-unassigned-vars / no-useless-assignment), and the test-discovery note.

The devDependency bumps #489 also wanted (eslint-config-prettier ^10, globals ^17) already landed via #487/#488. eslint.config.js, CLAUDE.md, .claude/settings.json, and the workflows are intentionally kept as repo customizations (the standard's own rollout leaves them alone too).

Dev-facing only — neither changed file ships in the npm package, so no CHANGELOG/version bump.

🤖 Generated with Claude Code

Refresh the managed AGENTS.md block from the central standard and add the
standard's .gitattributes:

- .gitattributes pins the working tree to LF (`* text=auto eol=lf`). With
  core.autocrlf=true on Windows, files checked out as CRLF fail
  `npm run format:check` locally even though the blob in git is LF and CI stays
  green on Linux. This makes local and CI results identical on every platform.
- AGENTS.md managed block updated to v0.3.3: the expanded single-exit rule (no
  guard clauses; validate by nesting; throw is the one allowed non-return exit),
  "no defensive programming", the ESLint 10 recommended additions
  (no-unassigned-vars / no-useless-assignment), and the test-discovery note
  explaining why the test script takes no path args.

Dev-facing only: neither file ships in the npm package (not in `files`), so no
CHANGELOG entry or version bump. Supersedes the conflicted automated PR #489.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@windkh
windkh merged commit 7c7cd49 into master Aug 4, 2026
6 checks passed
@windkh
windkh deleted the chore/standards-sync-v0.3.3 branch August 4, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant