Skip to content

Fix: Resolve ESLint errors#21

Merged
nannany merged 4 commits intomainfrom
fix-lint-errors
May 25, 2025
Merged

Fix: Resolve ESLint errors#21
nannany merged 4 commits intomainfrom
fix-lint-errors

Conversation

@nannany
Copy link
Copy Markdown
Owner

@nannany nannany commented May 25, 2025

This commit addresses numerous ESLint errors reported by npm run lint.

Key changes include:

  • Corrected ESLint configuration (eslint.config.js) for better module type detection, React version detection, and project references (tsconfig paths).
  • Resolved no-undef errors for module in CJS config files.
  • Addressed 'React' must be in scope issues by adding import React where necessary for type usage, after confirming tsconfig's jsx: react-jsx was set.
  • Fixed unescaped entities in JSX.
  • Corrected no-case-declarations by adding blocks in switch cases.
  • Removed an unused variable in use-toast.ts.

Known outstanding issues (believed to be false positives or non-critical):

  • Several no-unused-vars errors in src/components/SortableTask.tsx that appear to be misinterpretations by the linter.
  • One 'ghost' no-unused-vars error in src/components/ui/use-toast.ts.
  • Two react-refresh/only-export-components warnings (best practice, not errors).

Overall, the codebase is now significantly cleaner with respect to ESLint rules.

This commit addresses numerous ESLint errors reported by `npm run lint`.

Key changes include:
- Corrected ESLint configuration (eslint.config.js) for better module type detection, React version detection, and project references (tsconfig paths).
- Resolved `no-undef` errors for `module` in CJS config files.
- Addressed `'React' must be in scope` issues by adding `import React` where necessary for type usage, after confirming tsconfig's `jsx: react-jsx` was set.
- Fixed unescaped entities in JSX.
- Corrected `no-case-declarations` by adding blocks in switch cases.
- Removed an unused variable in `use-toast.ts`.

Known outstanding issues (believed to be false positives or non-critical):
- Several `no-unused-vars` errors in `src/components/SortableTask.tsx` that appear to be misinterpretations by the linter.
- One 'ghost' `no-unused-vars` error in `src/components/ui/use-toast.ts`.
- Two `react-refresh/only-export-components` warnings (best practice, not errors).

Overall, the codebase is now significantly cleaner with respect to ESLint rules.
@vercel
Copy link
Copy Markdown

vercel bot commented May 25, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tryjunie ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 25, 2025 10:32pm

@nannany nannany merged commit 934eb03 into main May 25, 2025
2 of 3 checks passed
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