Skip to content

Commit

Permalink
fix: Things
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio committed Mar 8, 2024
1 parent c9f01d9 commit 75117e6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 18 deletions.
15 changes: 0 additions & 15 deletions .husky/pre-commit

This file was deleted.

1 change: 1 addition & 0 deletions indexer/.subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,3 +232,4 @@ templates:
handler: handleTransfer
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer

7 changes: 4 additions & 3 deletions webapp/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
cd ./webapp

FILES=$(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g' | { grep -E '(js|ts|tsx|json|yml|md|html|css)$' || true; })
FILES=$(git diff --cached --name-only --relative=webapp --diff-filter=ACMR | sed 's| |\\ |g' | { grep -E '(js|ts|tsx|json|yml|md|html|css)$' || true; })

if [ -z "$FILES" ]; then
exit 0
fi

TS_FILES=$(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g' | { grep -E '(js|ts|tsx)$' || true; })
TS_FILES=$(git diff --cached --name-only --relative=webapp --diff-filter=ACMR | sed 's| |\\ |g' | { grep -E '(js|ts|tsx)$' || true; })

if [[ ! -z "$TS_FILES" ]];then
echo "Running lints"
npm run pre-commit:fix:code -- $TS_FILES
fi
fi
1 change: 1 addition & 0 deletions webapp/src/utils/test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { RootState } from '../modules/reducer'
import { initTestStore } from '../modules/store'
import * as locales from '../modules/translation/locales'

// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
const allTranslations = mergeTranslations(flatten(en), flatten(locales.en) as any)

export function renderWithProviders(
Expand Down

0 comments on commit 75117e6

Please sign in to comment.