Skip to content

Conversation

@serayd61
Copy link

Description

Fixes #2057

This PR upgrades the ESLint setup from legacy .eslintrc.js to modern flat config (eslint.config.mjs) as requested.

Changes

  • Migrated from legacy .eslintrc.js to modern eslint.config.mjs (flat config)
  • Upgraded ESLint from v8 to v9
  • Upgraded typescript-eslint to v8 (unified package)
  • Updated eslint-plugin-prettier to v5
  • Added eslint-config-prettier for better Prettier integration
  • Removed deprecated @typescript-eslint/parser and @typescript-eslint/eslint-plugin
  • Updated lint scripts to use new ESLint CLI format

Migration Notes

  • Uses typescript-eslint's recommended and recommendedTypeChecked configs
  • Maintains all existing rule customizations
  • Properly ignores lib/, client/, utils/, migrations/ directories
  • Configured projectService for type-aware linting

References

- Add @fastify/static for serving frontend files
- Update build script to include frontend build
- Add SPA routing fallback for frontend
- Token Sale component now accessible on deployed site
- Frontend served from backend at root path
Fixes hirosystems#2057

## Changes
- Migrated from legacy .eslintrc.js to modern eslint.config.mjs (flat config)
- Upgraded ESLint from v8 to v9
- Upgraded typescript-eslint to v8 (unified package)
- Updated eslint-plugin-prettier to v5
- Added eslint-config-prettier for better Prettier integration
- Removed deprecated @typescript-eslint/parser and @typescript-eslint/eslint-plugin
- Updated lint scripts to use new ESLint CLI format

## Migration Notes
- Uses typescript-eslint's recommended and recommendedTypeChecked configs
- Maintains all existing rule customizations
- Properly ignores lib/, client/, utils/, migrations/ directories
- Configured projectService for type-aware linting

Reference: https://typescript-eslint.io/getting-started/
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.

Upgrade from legacy ESLint setup

1 participant