Skip to content

linting fixes#599

Draft
flacoman91 wants to merge 4 commits into
mainfrom
rad-linting-fixes
Draft

linting fixes#599
flacoman91 wants to merge 4 commits into
mainfrom
rad-linting-fixes

Conversation

@flacoman91
Copy link
Copy Markdown
Collaborator

@flacoman91 flacoman91 commented May 29, 2026

This PR:

  • fixing lint warnings and code improvements

  • add lit to peerDependencies so other projects using WC won't fail for not including lit. I opened a ticket here for DS: DS should install lit as a dependency design-system#2691

  • fixed font issue to make sure source sans loads in storybook & library builds. src/index.ts already imports the font for library consumers; the Storybook preview entry was missing the same import (documented in _shared.scss but not implemented).

  • declare module for font to fix ts lint nag (Fontsource ships CSS only, no .d.ts)

  • Storybook typing fixes Storybook’s StoryObj<typeof meta> inference breaks when story args don’t match the meta component type, or when component props are a discriminated union. Updated affected stories to use the correct component type for StoryObj.

src/index.ts already imports the font for library consumers; the Storybook preview entry was missing the same import (documented in _shared.scss but not implemented).

  • eslint.config.js - Ignore .yarn/** so npx eslint . does not fail on the Yarn release bundle

  • updated README.md | Update install instructions to include peer dependencies and note why lit is needed |

Notes

  • lit peer dependency is a workaround until @cfpb/cfpb-design-system declares lit in its own package.json (packaging bug filed separately).

@flacoman91 flacoman91 changed the title Rad linting fixes linting fixes May 29, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 29, 2026

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://cfpb.github.io/design-system-react/pr-previews/pr-599/

Built to branch gh-pages at 2026-05-29 19:16 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

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