Skip to content

Commit

Permalink
Adding lintstaged to root
Browse files Browse the repository at this point in the history
  • Loading branch information
mattschoch committed Mar 26, 2024
1 parent 69885a0 commit fe47c15
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
'*.{ts,tsx}': (filenames) => [
`eslint --no-error-on-unmatched-pattern ${filenames.join(' ')}; echo "ESLint completed with exit code $?"`,
`prettier --write ${filenames.join(' ')}`
]
}
2 changes: 1 addition & 1 deletion packages/signature/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export * from './lib/decode'
export * from './lib/encrypt'
export * from './lib/hash-request'
export * from './lib/schemas'
export * from './lib/sign'
export * from './lib/types'
export * from './lib/utils'
export * from './lib/verify'
export * from './lib/encrypt'
2 changes: 1 addition & 1 deletion packages/signature/src/lib/__test__/unit/sign.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { createPublicKey } from 'node:crypto'
import { toHex, verifyMessage } from 'viem'
import { privateKeyToAccount, signMessage } from 'viem/accounts'
import { buildSignerEip191, buildSignerEs256k, signJwt } from '../../sign'
import { Alg, Payload, PrivateKey, SigningAlg } from '../../types'
import { Alg, Payload, SigningAlg } from '../../types'
import {
base64UrlToBytes,
base64UrlToHex,
Expand Down

0 comments on commit fe47c15

Please sign in to comment.