Files
xverse-web-extension/.eslintrc.json
Edu be259d8c3d feat: Stacks sign multiple transactions [ENG-5426][ENG-6130] (#801)
* Add docs

* Update docs

* WIP

* wip - reverting to stacks v6

* Create functional skeleton

* Start fleshing out contract call transaction viewer

* Start post conditions components

* Remove unused description

* Add more post condition components

* Start STX post condition

* Use switch

* Clean up STX post conds

* Shorten message

* Remove debug code

* Tweak button padding & margin options

* Add Stacks value truncating helpers

* Add call details section

* Clean up

* Add transaction fee

* WIP

* Create edit button

* Complete fee

* WIP

* Add functional arrows

* Complete actions handlers

* Update no transfers component

* MVP

* Add content body container

* Display function interface

* Improve text truncation

* Start ledger

* WIP

* Advance ledger components

* Improve layout

* Use null instead of undefined

* Retrieve ledger transport

* Sign with ledger MVP

* Implement sign with ledger happy path

* Clean up

* Move signing logic inside compoent

* Prevent concurrent signing requests

* WIP

* Handle state changes within related components

* Rename variables

* Refactor

* Create final screen

* Update import path

* Update copy

* Remove debug code

* Remove unused files

* Update copy

* Add handler

* Clean up exports

* wip

* wip

* wip

* Refactor loader

* Update transaction details styles

* Refactor transaction details

* Remove network placeholder

* Remove debug code

* Use fee estimation hook

* Update fee styles and copy

* Fix formatting

* Remove unused file

* Use camelCase file names

* Update fee title style

* Remove unnecessary "todo"

* Organize components

* Rename component

* Remove unused import

* Remove export

* Remove default export constraint

* Add translation

* Use availableBalance

* Use modifyRecommendedStxFees

* Remove unused comment

* Add conversion helper

* Use existing fiat converting function

* Use ui-lib component

* Add post conditions README

* Refactor post-conditions logic

* Refactor display of sponsored transactions

* Refactor sponsored transaction ui

* Add docs

* Remove comment

* Use translations for image alts

* Use ErrorDisplay for errors

* Remove sponsored card

* Remove duplicate hook

* Set released sats-connect-core version

* Fetch fees while editor is closed
2025-01-07 15:15:13 +00:00

76 lines
1.8 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",
"no-await-in-loop": "off",
"import/prefer-default-export": "off",
"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,
"import/order": 0
},
"overrides": [
{
"files": ["tests/**/*.{js,jsx,ts,tsx}"],
"plugins": ["playwright"],
"extends": ["plugin:playwright/playwright-test"],
"rules": {
"playwright/expect-expect": "off"
}
}
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"],
"moduleDirectory": ["node_modules", "src/"]
}
}
}
}