chore: modernize tooling, remove dead code, and rewrite docs#289
Merged
chore: modernize tooling, remove dead code, and rewrite docs#289
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
55d89de to
2ed248b
Compare
2ed248b to
2f47a12
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Modernize the project tooling, remove dead code, and overhaul documentation.
ts-jestfor testing; migrate ESLint from legacyconfig (v8) to flat config (v9) with
typescript-eslint; simplify Husky hook;bump GitHub Actions (
checkout,setup-node,setup-python) to v6.axiosand the unused CoinGecko / CoinMarketCap logo-fetchingmodule (
src/utils/logo.ts), thecheckTokenExistshelper, and all related configentries (
COINMARKETCAP_API_KEY,COINGECKO_URL,COINMARKETCAP_URL). Drop 7unnecessary dev-dependencies.
readJsonFilereturn type fromanytounknown, typesaveJsonFileinput asLineaTokenList, and callvalidateConfig()at startup.README.md(project structure, commands table, CI/CD overview),rewrite
docs/development.md(environment variables reference, structured fieldtable), add
CONTRIBUTING.md, and improve the PR template with a type-of-changesection and additional checklist items.
prettify→prettierfor consistency; remove the deprecatedprecommitscript.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) withtypescript-eslint, replaces Babel-based Jest transforms withts-jest, simplifies Husky pre-commit to runlint+prettier, renames formatting scripts fromprettify→prettier, adds atypecheckscript, 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_KEYfrom.env.example), droppingaxiosand other no-longer-needed dev deps, and tightening type-safety by changing JSON file helpers tounknown/LineaTokenListand validating config on startup; documentation and contribution workflow are refreshed via a rewrittenREADME, updateddocs/development.md, newCONTRIBUTING.md, and an expanded PR template/checklist.Written by Cursor Bugbot for commit 2f47a12. This will update automatically on new commits. Configure here.