Files
xverse-web-extension/.eslintrc.json
Imamah-Zafar c5456086e2 feat: STX NFTs Tab (#634)
* Add hook to get nft collection data

* Update stx collectible UI

* Make NFT collage for collections

* Fix on click function

* fix import

* Update NFT Collection Page & NFT Detail Page (#633)

* Update NFT Detail UI

* Use hook to get collection data

* Add NFT Collection screen

* Fix navigation

* Remove hard coded address

* Fix bns name navigation

* refactor: use array for cache key

* Turn off no-nested-ternary rule globally

* Move nft util functions to a seperate file

* fix: remove unnecessary use mutation in nft details

and some other bug fixes

* fix: add the useResetUserFlow hook to nft collection page

* refactor: remove nftData from redux store

use the react-query cache instead, and fixes bug where some nftData was
not being stored

* fix: add isLoading state back to nftdetail and route to send with id

* fix: react console errors and send nft finishes at dashboard screen

* feat: add sticky tabs to collectibles dashboard

* refactor: separate use nft dashboard to separate file

* fix: bns detail page works

* chore: use core version with some updates

* fix: make bns names in collection screen not clickable and display name

* chore: enable stx test address from localstorage

* fix: button width for gallery view (#650)

* fix: open NFT gamma link (#649)

* fix: open nft page on gamma

* refactor: gamma url

* fix: metaData

* fix: show snackbar if NFT metadata is failed to fetch (#648)

* fix: show snackbar if nft metadata is failed to fetch

* fix: snackbar styling

* feat: revamp stacks nfts send to screen (#653)

* feat: revamp the send nft screen

* fix: back button display should rely on back history not ledger account

* fix: ledger accounts should only open in new tab when not already in full screen

otherwise it is annoying

* fix: add the bns name resolver to send nft form

* fix: opening a send-nft from ledger should open responsive screen

and debounce the stx address -> bns name resolver

* fix: some nft images are still showing the moon loader spinner it should be (#654)

* chore: tweak BetterBarLoader component to receive string as width and height in order to user percentages

* fix: key prop in nft collection screen

* fix: hardcoded placeholder size values and replace error icon with the new one

* fix: NFT detail screen UI (#655)

* fix: detail screen UI

* fix: UI alignments

* fix: buttons spacing

* feat: hook items count with correct values (#658)

* fix: column gap on tiles skeleton loader

* chore: update core version

* chore: follow i18n next doc about plurals (#661)

* fix: extension crashes when closing the broadcast success screen (#662)

* fix: wrong background color on transaction status screens

* fix: wrong navigation routes on transaction status screen

* fix: copy on inscription complete screen

* fix: z index on sticky tabs list and modals, popups (#665)

* refactor: collectibles fetch (#666)

* refactor: adapt to core refactor of stx collectibles

* fix: add back the check for metadata before nav to nft detail screen

* fix: use 24 hour staleTime for nft details to match mobile

* refactor: remove unused utils function

* fix: add react-is-visible to virtualise nft tab and nft collection page

* chore: bump core version with duplicate nft fix

* chore: bump core version

* chore: update core version and remove total_nft

* fix: bns image size and disable click on bns item (#668)

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>
Co-authored-by: Abdul Haseeb <haseeb4239@gmail.com>
Co-authored-by: fede erbes <fedeerbes@gmail.com>
2023-11-21 21:12:28 +08:00

64 lines
1.5 KiB
JSON

{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"prettier",
"plugin:@tanstack/eslint-plugin-query/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["react", "prettier", "eslint-plugin-no-inline-styles", "@tanstack/query"],
"rules": {
"consistent-return": "off",
"import/prefer-default-export": 1,
"no-restricted-imports": [
"warn",
{
"patterns": ["@secretkeylabs/xverse-core/**/*"]
}
],
"no-promise-executor-return": "warn",
"max-len": "off",
"no-inline-styles/no-inline-styles": 2,
"no-nested-ternary": "off",
"no-param-reassign": "off",
"react-hooks/exhaustive-deps": "warn",
"react/jsx-key": "warn",
"react/jsx-props-no-spreading": "off",
"react/react-in-jsx-scope": "off",
"react/require-default-props": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": true,
"argsIgnorePattern": "^_"
}
],
"no-plusplus": "off",
"@tanstack/query/exhaustive-deps": 1
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"],
"moduleDirectory": ["node_modules", "src/"]
}
}
}
}