@@ -7,7 +7,7 @@ changes agent behaviour and cannot be inferred from the codebase or tooling.
77
88TypeScript React library providing a slim progress bar primitive via three
99patterns: ` useNProgress ` hook, ` NProgress ` render-props component, and
10- ` withNProgress ` HOC. Exports logic only — no rendering. All exports go through
10+ ` withNProgress ` HOC. Exports logic only, not rendering. All exports go through
1111` src/index.tsx ` . Types live in ` src/types.ts ` .
1212
1313## Key Commands
@@ -22,14 +22,15 @@ npm run format # fix lint and formatting
2222
2323### Comments
2424
25- - Use ` // ` line comments only — never ` /* */ ` or ` /** */ `
25+ - Use ` // ` line comments only, never ` /* */ ` or ` /** */ `
2626- Explain _ why_ , not _ what_ ; wrap at 80 characters
27+ - End every comment with a full stop, even single-line comments
2728
2829### Language
2930
3031Use ** New Zealand English** in all user-facing text, variable names, and
3132comments (e.g. "colour", "behaviour", "organisation"). Standardised API names
32- (` color ` , ` textAlign ` ) are fixed — leave them unchanged.
33+ (` color ` , ` textAlign ` ) are fixed: leave them unchanged.
3334
3435``` javascript
3536const progressColour = ' #0066cc'
@@ -49,9 +50,9 @@ subject, no trailing period, blank line between subject and body.
4950
5051Managed by Renovate (` config:js-lib ` preset):
5152
52- - ` devDependencies ` — pinned exact versions (no ` ^ ` or ` ~ ` )
53- - ` dependencies ` — caret ranges (` ^ ` )
54- - ` peerDependencies ` — explicit OR ranges (e.g. ` ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 ` )
53+ - ` devDependencies ` : pinned exact versions (no ` ^ ` or ` ~ ` )
54+ - ` dependencies ` : caret ranges (` ^ ` )
55+ - ` peerDependencies ` : explicit OR ranges (e.g. ` ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 ` )
5556- Do ** not** add ` allowedVersions ` to ` renovate.json ` without a documented reason
5657
5758## Testing
@@ -85,7 +86,23 @@ needed but test on CodeSandbox before merging.
8586Do not bump vite, @vitejs/plugin-react , next, or typescript in examples
8687beyond the versions in the reference templates.
8788
89+ ## Writing Style
90+
91+ - Avoid marketing or promotional language. State facts plainly.
92+ - Follow best practices for technical writing: be clear, direct, and
93+ concise.
94+ - Avoid em dashes. Use colons, commas, or separate sentences instead.
95+ - Use present tense and active voice where practical.
96+ - Keep sentences short. One idea per sentence.
97+
8898## Versioning
8999
90- Strict semver — no breaking changes without a major version bump, including
100+ Strict semver: no breaking changes without a major version bump, including
91101technical refactors.
102+
103+ ## Documentation
104+
105+ - After each code change, update all related docs and markdown files
106+ (README.md, MIGRATION.md, example READMEs, etc.) in the same pass.
107+ - Do not manually modify CHANGELOG.md. It is auto-generated during
108+ release.
0 commit comments