Skip to content

chore fix eslint config and lint issues#1

Merged
reactlabs-dev merged 2 commits intomainfrom
chore/eslint-ci-fixes
Jan 27, 2026
Merged

chore fix eslint config and lint issues#1
reactlabs-dev merged 2 commits intomainfrom
chore/eslint-ci-fixes

Conversation

@reactlabs-dev
Copy link
Owner

No description provided.

Copilot AI review requested due to automatic review settings January 27, 2026 18:21
@reactlabs-dev reactlabs-dev self-assigned this Jan 27, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates ESLint configuration and cleans up lint-triggering code patterns (unused imports/vars and unnecessary eslint-disable directives) across the app.

Changes:

  • Fix ESLint TypeScript preset reference and add rule overrides for tests and a specific component.
  • Remove unused type imports / variables and drop unused component props.
  • Remove unused component imports in QuestionnaireDialog and remove inline eslint-disable-next-line directives.

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/utils/index.ts Removes unused type import to satisfy lint rules.
src/hooks/index.ts Removes unused type import to satisfy lint rules.
src/app/pages/home.tsx Removes unused props interface/parameter for lint cleanliness.
src/app/components/weightInput/WeightInput.tsx Removes unnecessary eslint-disable directive.
src/app/components/visualization/Visualization.tsx Removes unnecessary eslint-disable directive.
src/app/components/questionnaire/QuestionnaireDialog.tsx Removes unused React hook and unused component imports.
src/app/components/footer/Footer.tsx Removes unused props interface/parameter for lint cleanliness.
src/app/components/compositeScoreDisplay/CompositeScoreDisplay.tsx Removes unnecessary eslint-disable directive.
src/app/components/calculator/Calculator.tsx Removes unnecessary eslint-disable directive.
src/app/components/StatisticsBanner/StatisticsBanner.tsx Removes unnecessary eslint-disable directive.
src/app/components/MainMenu/MainMenu.tsx Removes unnecessary eslint-disable directive.
src/app/components/Cube3D.tsx Removes unused variables to satisfy lint rules.
src/app/app.tsx Removes unused eslint-disable directive near imports.
.eslintrc.json Fixes TS ESLint preset and adds overrides for tests / a component file.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

src/app/app.tsx Outdated
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { Route, Routes } from 'react-router-dom';
import Home from './pages/home';
import React from 'react';
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

React is imported but never used in this file (the project uses the react-jsx runtime). With npm run lint configured as --max-warnings 0, this will fail due to @typescript-eslint/no-unused-vars. Remove the unused React import.

Suggested change
import React from 'react';

Copilot uses AI. Check for mistakes.
Comment on lines 1 to 5
import React from 'react';
import styles from './Footer.module.scss';

/* eslint-disable-next-line */
export interface FooterProps {}

export function Footer(props: FooterProps) {
export function Footer() {
return (
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

React is imported but not referenced anywhere in this component (no React.FC, and JSX uses the react-jsx runtime). This will be reported by @typescript-eslint/no-unused-vars and fail linting with --max-warnings 0. Remove the unused React import.

Copilot uses AI. Check for mistakes.
@reactlabs-dev reactlabs-dev merged commit b99541f into main Jan 27, 2026
1 check 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