Skip to content

fix(frontend): enable strict TypeScript and ESLint without build over…#151

Open
Richardkingz2019 wants to merge 2 commits into
AetherEdu:mainfrom
Richardkingz2019:fix/issue-2-strict-typescript-no-overrides
Open

fix(frontend): enable strict TypeScript and ESLint without build over…#151
Richardkingz2019 wants to merge 2 commits into
AetherEdu:mainfrom
Richardkingz2019:fix/issue-2-strict-typescript-no-overrides

Conversation

@Richardkingz2019

Copy link
Copy Markdown
Contributor

…rides

Removed ignoreBuildErrors and ignoreDuringBuilds from next.config.js and added the missing @creit.tech/stellar-wallets-kit path alias to tsconfig.json. To keep the build compiling under strict mode this change also adds:

  • Ambient declarations for brainflow, react-day-picker, and the JSX intrinsic (src/types/modules.d.ts)
  • ~16 minimal UI stub primitives and a barrel ui/index.ts so the build no longer depends on shadcn-ui at compile time
  • Centralized forwardRef-wrapped replacements for missing lucide-react icons (src/utils/missingIcons.tsx)
  • Clean barrels for components/interactive, components/ARVR, components/NanoLearning, components/AdaptiveLearning that only re-export real exports
  • EnrollmentData.id as a stable string field and a v14-shaped cast on the Stellar SubmitTransactionResponse
  • Per-file type fixes in NeuralInterface/, stellar.ts, and several MixedReality / Analytics / Collaboration components

Verification: next lint exits cleanly with only 6 pre-existing warnings in src/utils/offlineDB.ts; tsc --noEmit is reduced from 216 to 182 errors.

Refs: #2

Description

Please include a summary of the changes and which issue is fixed. Please also include relevant motivation and context.

Fixes #31

Type of Change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

closes #2

…rides

Removed ignoreBuildErrors and ignoreDuringBuilds from next.config.js and
added the missing @creit.tech/stellar-wallets-kit path alias to
tsconfig.json. To keep the build compiling under strict mode this
change also adds:

- Ambient declarations for brainflow, react-day-picker, and the
  <model-viewer> JSX intrinsic (src/types/modules.d.ts)
- ~16 minimal UI stub primitives and a barrel ui/index.ts so the build
  no longer depends on shadcn-ui at compile time
- Centralized forwardRef-wrapped replacements for missing lucide-react
  icons (src/utils/missingIcons.tsx)
- Clean barrels for components/interactive, components/ARVR,
  components/NanoLearning, components/AdaptiveLearning that only
  re-export real exports
- EnrollmentData.id as a stable string field and a v14-shaped cast on
  the Stellar SubmitTransactionResponse
- Per-file type fixes in NeuralInterface/, stellar.ts, and several
  MixedReality / Analytics / Collaboration components

Verification: next lint exits cleanly with only 6 pre-existing warnings
in src/utils/offlineDB.ts; tsc --noEmit is reduced from 216 to 182 errors.

Refs: AetherEdu#2
@Penielka

Copy link
Copy Markdown
Contributor

@Richardkingz2019 kindly resolve conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants