Aller au contenu
login
arrow_backRetour aux issues
Rahul-pamula/Open_Source_Scout #5

Add consistent ESLint configuration

ecoDébutant good first issue type:devex

descriptionDescription

## Problem We need to ensure code quality and consistency across the repository, but currently, we do not have ESLint configured for our React/TypeScript codebase. ## Goal Add and configure ESLint to enforce standard TypeScript and React rules. ## Where to Look - Look in the root directory (or `apps/web` if scaffolding is complete) for package configurations. ## Suggested Approach 1. Install `eslint`, `eslint-plugin-react`, `@typescript-eslint/parser`, and `@typescript-eslint/eslint-plugin` as dev dependencies. 2. Create an `.eslintrc.cjs` or `eslint.config.js` file. 3. Add a `lint` script to `package.json`. ## Acceptance Criteria - [ ] ESLint is installed and configured. - [ ] `npm run lint` executes successfully and reports any errors. - [ ] The configuration supports both TypeScript and React hooks. ## Testing Run `npm run lint` locally and ensure it parses the `.tsx` files correctly. ## Difficulty `Beginner`
codeOuvre sur GitHub