Skip to content

Add ESLint and Prettier for consistent code style - #166

Open
ShivamH1 wants to merge 2 commits into
Autoloops:mainfrom
ShivamH1:feature/Eslint
Open

Add ESLint and Prettier for consistent code style#166
ShivamH1 wants to merge 2 commits into
Autoloops:mainfrom
ShivamH1:feature/Eslint

Conversation

@ShivamH1

Copy link
Copy Markdown

Closes #165

What

Adds ESLint and Prettier to enforce consistent code style across the codebase.

Why

No linting or formatting tools were configured. Code style was enforced through convention only, making it easy for inconsistencies to slip into PRs.

Changes

  • Add .eslintrc.json with @typescript-eslint/recommended + prettier config
  • Add .prettierrc matching existing codebase conventions
  • Add .prettierignore to exclude build output
  • Add lint, lint:fix, format, format:check scripts to package.json
  • Add ESLint and Prettier devDependencies
  • Format all TypeScript files with Prettier
  • Fix minor lint issues (unused vars, empty interface, eslint-disable for intentional patterns)

Verification

  • npm run lint — 0 errors, 3 warnings
  • npm run format:check — all files pass
  • npm test — all tests pass

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.

Add ESLint and Prettier for consistent code style

1 participant