Skip to content

fix(brainstorm): lint and type fixes#1856

Draft
tylerbutler wants to merge 1 commit intomicrosoft:mainfrom
tylerbutler:brainstorm-lint-fixes
Draft

fix(brainstorm): lint and type fixes#1856
tylerbutler wants to merge 1 commit intomicrosoft:mainfrom
tylerbutler:brainstorm-lint-fixes

Conversation

@tylerbutler
Copy link
Copy Markdown
Member

Summary

  • Update tsconfig jsx from "react" to "react-jsx" (React 19 automatic transform)
  • Convert == to === and != to !== for strict equality
  • Convert ternary expressions to nullish coalescing (??)
  • Replace non-null assertions (!) with ?? "" fallbacks
  • Add .catch() handlers for floating promises
  • Fix import ordering per import-x/order
  • Apply consistent-type-imports (separate type imports)
  • Use codePointAt() instead of charCodeAt()

These are independently valid code improvements, split out from the eslint-config-fluid adoption PR.

Test plan

  • npm run compile in brainstorm has no new TypeScript errors
  • Dev server starts correctly

- Update tsconfig jsx from "react" to "react-jsx" (React 19 automatic transform)
- Convert == to === and != to !== for strict equality
- Convert ternary expressions to nullish coalescing (??)
- Replace non-null assertions with ?? "" fallbacks
- Add .catch() handlers for floating promises
- Fix import ordering per import-x/order
- Apply consistent-type-imports (separate type imports)
- Use codePointAt() instead of charCodeAt()
🤖 Generated with [Nori](https://noriagentic.com)

Co-Authored-By: Nori <contact@tilework.tech>
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