Skip to content

Commit

Permalink
feat: add eslint-disable to generated output
Browse files Browse the repository at this point in the history
  • Loading branch information
llllvvuu committed Aug 25, 2023
1 parent 9bfa8bb commit 673b07b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli/src/commands/generate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ describe('generate', () => {
await expect(
readFile(resolve(dir, 'generated.ts'), 'utf8'),
).resolves.toMatchInlineSnapshot(`
"// Generated by @wagmi/cli@x.y.z on 1/30/2023 at 12:00:00 PM
"/* eslint-disable */
// Generated by @wagmi/cli@x.y.z on 1/30/2023 at 12:00:00 PM
/* imports test */
/* prepend test */
Expand Down
1 change: 1 addition & 0 deletions packages/cli/src/commands/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ async function writeContracts({
}) {
// Assemble code
let code = dedent`
/* eslint-disable */
// Generated by @wagmi/cli@${packageVersion} on ${new Date().toLocaleDateString()} at ${new Date().toLocaleTimeString()}
${imports.join('\n\n') ?? ''}
Expand Down

0 comments on commit 673b07b

Please sign in to comment.