Skip to content

Commit

Permalink
add type linting
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed May 28, 2024
1 parent 07075a4 commit 2019176
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:

- name: lint code
run: pnpm lint
run: pnpm lint:types

- name: Install foundry
uses: foundry-rs/foundry-toolchain@v1
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
},
"scripts": {
"build": "tsc -p tsconfig.build.json",
"lint": "eslint .",
"lint": "eslint src/**/*.ts eslint.config.js",
"lint:types": "tsc --noEmit",
"prepublishOnly": "pnpm build",
"test": "vitest run",
"test:coverage": "vitest run --coverage"
Expand Down
3 changes: 0 additions & 3 deletions tests/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Address } from 'viem'
import { NetworkType } from '../src/utils/networks.js'
import { EIP3770Address } from '../src/types.js'

// ========================================
Expand All @@ -17,8 +16,6 @@ export const [ALICE, BOB] = ACCOUNTS
// TEST ENV VARIABLES
// ========================================

export const TEST_NETWORK_TYPE = (process.env.VITE_TEST_NETWORK_TYPE ?? 'ETHEREUM_SEPOLIA') as NetworkType

if (!process.env.VITE_EXAMPLE_SAFE) {
throw new Error('Missing environment variable "VITE_EXAMPLE_SAFE"')
}
Expand Down

0 comments on commit 2019176

Please sign in to comment.