This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { getAddress } from 'viem' | |
import { z } from 'zod' | |
export const address = z | |
.string() | |
.transform((val, ctx) => { | |
try { | |
return getAddress(val.toLowerCase()) | |
} catch { | |
ctx.addIssue({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import path from 'path' | |
import util from 'util' | |
import child_process from 'child_process' | |
const exec = util.promisify(child_process.exec) | |
const projectDirname = 'web' // Update with the path to your Next.js project | |
const buildEslintCommand = async (filenames) => { | |
// `next lint` just silently ignores file inputs if the file doesn't exist, |