Files
Rabby/.eslintrc
richardo2016x 02dfa5e908 feat: improve refresh ux of home balance section. (#2245)
* WIP: feat: improve refresh ux of home balance section.

* feat: cache previously loaded balance & curvePoint for address.

* fix: avoid show spining refresh button if home balance cache detected

* feat: deprecate `homeBalanceLoadingExpiration`, timing on background memory.

* feat: tuning  refresh delay after tx completed.

* feat: notify refresh balance after tx completed.

* chore: cleanup.

* fix: env var.

* fix: loading style for percentage.

* feat: force expire address's balance/netCurve after tx completed, style tuning.

* fix: value robust.

* fix: type & typo.

* feat: wider refresh-trigger area.

* feat: refresh on next-time open dashboard after tx completed.

* feat: tuning refresh balance timeout, clear balance cache right away after tx completed.

* fix: avoid dead reaction on click refresh button.

* feat: don't show change percentage if no start usd value.

* feat: disable auto refresh on UI.

* feat: don't trigger immediate refresh after tx completed.

* feat: only trigger expiration once on entering dashboard.
2024-04-30 19:36:32 +08:00

31 lines
763 B
Plaintext

{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "react", "react-hooks"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"rules": {
"quotes": [1, "single", "avoid-escape"],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": "off",
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],
"react-hooks/exhaustive-deps": ["off", {
"additionalHooks": "(useWallet)"
}]
},
"env": {
"browser": true,
"node": true
}
}