You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,12 @@
10
10
-`yarn build:cjs` / `yarn build:esm` generate a single module target when you need faster iteration.
11
11
-`yarn dev` watches the compiler (`tsc-watch`) and re-runs `node dist/index.js` after successful builds for local experimentation.
12
12
-`yarn test` runs the Jest suite once; `yarn test:watch` keeps Jest hot during development; `yarn coverage` enforces coverage expectations and refreshes the `coverage/` report.
13
+
-`yarn lint` runs Biome across the repo; fix any reported issues or explicitly suppress with justification.
13
14
14
15
## Coding Style & Naming Conventions
15
16
- Write modern, strict TypeScript (see `tsconfig.json`: `strict: true`, ES6 modules). Prefer named exports, keeping default exports limited to top-level entry points (`WeatherPlus`).
16
17
- Use two-space indentation, camelCase for functions/variables, PascalCase for classes/types, and SCREAMING_CASE for constants. Match existing file casing (e.g., `providerRegistry.ts`, `weatherService.ts`) to stay consistent.
17
-
- Keep provider adapters cohesive: map external API responses to internal interfaces inside the provider module, and surface errors via the shared `errors` utilities.
18
+
- Keep provider adapters cohesive: map external API responses to internal interfaces inside the provider module, and surface errors via the shared `errors` utilities. Biome (`biome.json`) enforces formatting, import order, and lint defaults—run it before committing changes.
18
19
19
20
## Testing Guidelines
20
21
- Jest powers unit and integration tests; colocate new specs as `*.test.ts` alongside the module under test.
0 commit comments