Skip to content

Fix lint warnings - #54

Merged
willwade merged 1 commit into
AACTools:mainfrom
sonicbaume:fix/lint-non-null-assertions
Oct 13, 2026
Merged

willwade merged 1 commit into
AACTools:mainfrom
sonicbaume:fix/lint-non-null-assertions

Conversation

@chrisbaume

Copy link
Copy Markdown
Contributor

Replace non-null assertions with optional chaining and explicit null guards so npm run lint reports no warnings.

  • vocabularyDump: iterate Map entries instead of get(tag)!
  • competence test: explicit null guard before toBeLessThan
  • gotalkNow tests: optional chaining inside expect(...)
  • opml roundtrip test: nullish fallback for targetPageId
  • vocabularyDump test: explicit guard after a null check

Replace non-null assertions with optional chaining and explicit null
guards so `npm run lint` reports no warnings.

- vocabularyDump: iterate Map entries instead of get(tag)!
- competence test: explicit null guard before toBeLessThan
- gotalkNow tests: optional chaining inside expect(...)
- opml roundtrip test: nullish fallback for targetPageId
- vocabularyDump test: explicit guard after a null check
@willwade

Copy link
Copy Markdown
Collaborator

Thanks Chris — merged.

@willwade
willwade merged commit 60d1732 into AACTools:main Oct 13, 2026
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.

2 participants