Skip to content

chore: modernize tooling, remove dead code, and rewrite docs#289

Merged
alainncls merged 1 commit intomainfrom
chore/modernize-tooling-and-cleanup
Feb 17, 2026
Merged

chore: modernize tooling, remove dead code, and rewrite docs#289
alainncls merged 1 commit intomainfrom
chore/modernize-tooling-and-cleanup

Conversation

@alainncls
Copy link
Collaborator

@alainncls alainncls commented Feb 17, 2026

Summary

Modernize the project tooling, remove dead code, and overhaul documentation.

  • Tooling: Replace Babel with ts-jest for testing; migrate ESLint from legacy
    config (v8) to flat config (v9) with typescript-eslint; simplify Husky hook;
    bump GitHub Actions (checkout, setup-node, setup-python) to v6.
  • Cleanup: Remove axios and the unused CoinGecko / CoinMarketCap logo-fetching
    module (src/utils/logo.ts), the checkTokenExists helper, and all related config
    entries (COINMARKETCAP_API_KEY, COINGECKO_URL, COINMARKETCAP_URL). Drop 7
    unnecessary dev-dependencies.
  • Type safety: Change readJsonFile return type from any to unknown, type
    saveJsonFile input as LineaTokenList, and call validateConfig() at startup.
  • Docs: Rewrite README.md (project structure, commands table, CI/CD overview),
    rewrite docs/development.md (environment variables reference, structured field
    table), add CONTRIBUTING.md, and improve the PR template with a type-of-change
    section and additional checklist items.
  • Scripts: Rename prettifyprettier for consistency; remove the deprecated
    precommit script.

Note

Medium Risk
Mostly build/test/lint/documentation changes, but upgrading ESLint/Jest tooling and enforcing runtime config validation can cause CI or developer workflow breakages if any assumptions or configs are off.

Overview
Modernizes the repo’s tooling and CI: migrates ESLint to v9 flat config (eslint.config.js) with typescript-eslint, replaces Babel-based Jest transforms with ts-jest, simplifies Husky pre-commit to run lint + prettier, renames formatting scripts from prettifyprettier, adds a typecheck script, and bumps GitHub Actions (checkout, setup-node, setup-python) to v6.

Cleans up unused configuration and dependencies by removing CoinMarketCap/CoinGecko-related env/config fields (and COINMARKETCAP_API_KEY from .env.example), dropping axios and other no-longer-needed dev deps, and tightening type-safety by changing JSON file helpers to unknown/LineaTokenList and validating config on startup; documentation and contribution workflow are refreshed via a rewritten README, updated docs/development.md, new CONTRIBUTING.md, and an expanded PR template/checklist.

Written by Cursor Bugbot for commit 2f47a12. This will update automatically on new commits. Configure here.

@alainncls alainncls self-assigned this Feb 17, 2026
@socket-security
Copy link

socket-security bot commented Feb 17, 2026

@alainncls alainncls force-pushed the chore/modernize-tooling-and-cleanup branch from 55d89de to 2ed248b Compare February 17, 2026 11:00
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

@alainncls alainncls force-pushed the chore/modernize-tooling-and-cleanup branch from 2ed248b to 2f47a12 Compare February 17, 2026 11:28
Copy link
Collaborator

@eloi010 eloi010 left a comment

Choose a reason for hiding this comment

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

LGTM

@alainncls alainncls merged commit 03f194b into main Feb 17, 2026
12 checks passed
@alainncls alainncls deleted the chore/modernize-tooling-and-cleanup branch February 17, 2026 15:03
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.

2 participants