@vvedantb/config 0.8.0 → 0.8.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#273](https://github.com/vvedantb/packages/pull/273) [`2db587f`](https://github.com/vvedantb/packages/commit/2db587ffc66fed29c86e8562f7f9b5bcb30e06c6) Thanks [@vvedantb](https://github.com/vvedantb)! - Soften the synced `## UI copy` section: subtext is the exception, allowed where the user needs it and nothing else on screen says it. The `vvedantb/no-settings-description` rule stays opt-in for apps that want a hard ban.
8
+
3
9
  ## 0.8.0
4
10
 
5
11
  ### Minor Changes
package/README.md CHANGED
@@ -66,7 +66,7 @@ Twelve rules, with no app prefix:
66
66
  | `no-double-cast` | A double cast such as `x as A as B` or `x as unknown as T`. |
67
67
  | `no-json-parse` | A bare `JSON.parse(...)` result that flows unchecked. `schema.parse(JSON.parse(x))` / `schema.safeParse(...)` are always allowed. With `{ "allowUnknownEscapeHatch": true }`, a `: unknown` annotation or `as unknown` cast is also allowed. |
68
68
  | `no-is-record` | Any identifier named `isRecord`. An `unknown` leaked in; type the data at its entry point instead. |
69
- | `no-settings-description` | A `description` prop on `SettingsSection`, `SettingsToggleRow` or `LabeledSwitchRow`. A section or row shows a title only. `{ "components": ["ProfileCard"] }` adds component names. |
69
+ | `no-settings-description` | A `description` prop on `SettingsSection`, `SettingsToggleRow` or `LabeledSwitchRow`. Opt in only where an app wants a hard ban; the default guidance is the `## UI copy` section, which allows a description where the user needs one. `{ "components": ["ProfileCard"] }` adds component names. |
70
70
  | `no-ts-nocheck` | `@ts-nocheck` and `@ts-ignore` comments. `@ts-expect-error` with a reason stays allowed. |
71
71
  | `no-conditional-tests` | An `expect(...)` call inside an `if`, `?:`, `&&`/`\|\|` or `switch` case in a test file. |
72
72
  | `no-inline-object-type-assertion` | `x as { … }` and `x as Record<string, unknown>`. |
package/dist/sync.js CHANGED
@@ -25,9 +25,9 @@ const CLAUDE_SECTIONS = [
25
25
  {
26
26
  heading: "## UI copy",
27
27
  body: [
28
- "- A section, card or row shows a title only. Do not add a description, subtitle or helper text under it unless the user asks.",
29
- "- Keep user-visible text short: say each thing once, in plain words.",
30
- "- Lint rule `vvedantb/no-settings-description` enforces this for the settings components.",
28
+ "- Subtext is the exception, not the default. Most sections, cards and rows show a title only.",
29
+ "- Add a description only when the user needs it to act and the title, value or badge does not already say it (a price, a limit, a warning).",
30
+ "- Never repeat the title, the value, a badge or a nearby row. Say each thing once, in plain words.",
31
31
  ].join("\n"),
32
32
  },
33
33
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vvedantb/config",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "license": "MIT",
5
5
  "description": "Shared tsconfig bases, oxlint base, Vite, Vitest, Babel and Metro presets, a WXT preset and host-permission helper for Chrome extensions, pinned tool versions, a sync CLI for Claude commands, CLAUDE.md, Cursor environment and Convex tsconfig, a packaged Electron app.asar module check, a shared header and footer check, a no-source-text-in-tests check, shared oxlint JS plugins and a CLI that adds an extension to Clerk's allowed origins.",
6
6
  "type": "module",