diff --git a/.lintstagedrc.js b/.lintstagedrc.js new file mode 100644 index 000000000..3cc2540b7 --- /dev/null +++ b/.lintstagedrc.js @@ -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(' ')}` + ] +} diff --git a/packages/signature/src/index.ts b/packages/signature/src/index.ts index 8dcb4ee61..bc5640ef4 100644 --- a/packages/signature/src/index.ts +++ b/packages/signature/src/index.ts @@ -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' diff --git a/packages/signature/src/lib/__test__/unit/sign.spec.ts b/packages/signature/src/lib/__test__/unit/sign.spec.ts index d90277c44..8c9c762a3 100644 --- a/packages/signature/src/lib/__test__/unit/sign.spec.ts +++ b/packages/signature/src/lib/__test__/unit/sign.spec.ts @@ -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,