-
Notifications
You must be signed in to change notification settings - Fork 138
Closed
Copy link
Labels
hacktoberfest-acceptedlevel 110 points10 pointsrecodethis is label for leaderboardthis is label for leaderboard
Milestone
Description
Description
I originally added ESLint and Prettier to the repository, including the .eslintrc.cjs configuration. Now, I am upgrading the setup to a flat config eslint.config.mjs to ensure it works properly for TypeScript, TSX, JS, and JSX files, and to improve linting consistency across the codebase.
Current Behavior
- ESLint shows parsing errors (
React is not defined,Unexpected token interface, etc.) - Console statements produce warnings (
no-console) in many files - TypeScript/JSX files are not fully linted correctly
Steps to Reproduce
- Clone the repository
- Run
npm install - Run
npm run lint
Expected Behavior
- ESLint parses TypeScript and JSX files correctly
- Console statements are allowed where needed (
no-consoledisabled) - Only relevant TypeScript/React linting issues are reported
- The linting setup works consistently across JS, JSX, TS, and TSX files
Suggested Fix / Solution
- Upgrade the ESLint configuration to
eslint.config.mjswith a flat config - Allow console statements by turning off
no-console - Keep
@typescript-eslintwarnings for unused variables andanyusage - Ensure
Reactis defined globally in TSX files
Metadata
Metadata
Assignees
Labels
hacktoberfest-acceptedlevel 110 points10 pointsrecodethis is label for leaderboardthis is label for leaderboard
Type
Projects
Status
Done