Skip to content

Commit

Permalink
ci: Update lint script and fix warning in smoke test (#1236)
Browse files Browse the repository at this point in the history
* Update lint script to not tolerate warnings during linter runs

* Fix warning in smoke test
  • Loading branch information
ce0la authored Jun 25, 2024
1 parent 31c5ee8 commit 806edbb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,15 @@ export const WalletAccounts = ({ isPopup, onBack }: { isPopup: boolean; onBack:
[disableAccountConfirmation, accountsData]
);

const showHWErrorState = useCallback((accountIndex: number) => {
enableAccountHWSigningDialog.setData({
accountIndex,
state: 'error'
});
}, []);
const showHWErrorState = useCallback(
(accountIndex: number) => {
enableAccountHWSigningDialog.setData({
accountIndex,
state: 'error'
});
},
[enableAccountHWSigningDialog]
);

const unlockHWAccount = useCallback(
async (accountIndex: number) => {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"cleanup": "yarn workspaces foreach run cleanup && yarn exec rm -rf node_modules storybook-static && rm -rf .cache/eslintcache",
"common:lint": "yarn eslint-cmd \"packages/common/**/*.{js,ts,tsx}\"",
"core:lint": "yarn eslint-cmd \"packages/core/**/*.{js,ts,tsx}\"",
"eslint-cmd": "eslint --cache --cache-location .cache/eslintcache --cache-strategy metadata --ignore-path ./.eslintignore",
"eslint-cmd": "eslint --cache --cache-location .cache/eslintcache --cache-strategy metadata --ignore-path ./.eslintignore --max-warnings=0",
"extension:lint": "yarn eslint-cmd \"apps/browser-extension-wallet/**/*.{js,ts,tsx}\"",
"format-check": "yarn workspaces foreach -ptv run format-check",
"postinstall": "husky install & ts-patch install -s",
Expand All @@ -48,7 +48,7 @@
},
"lint-staged": {
"*(apps/**/*.{js,ts,tsx}|packages/!(ui|translation)/**/*.{js,ts,tsx}|stories/**/*.{js,ts,tsx})": [
"eslint --cache --cache-location .cache/eslintcache --cache-strategy metadata --fix --ignore-path ./.eslintignore",
"eslint --cache --cache-location .cache/eslintcache --cache-strategy metadata --fix --ignore-path ./.eslintignore --max-warnings=0",
"prettier --write"
],
"*(packages/ui/**/*.{js,ts,tsx})": [
Expand Down

0 comments on commit 806edbb

Please sign in to comment.