Skip to content

Commit

Permalink
fix: fix lint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Raymond Feng <enjoyjava@gmail.com>
  • Loading branch information
raymondfeng committed Dec 26, 2023
1 parent 265d8ba commit 0e10680
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion packages/hardhat/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import './type-extensions'

import type { PublicConfig as RunTypeChainConfig } from '@collabland/typechain'
import { TASK_CLEAN, TASK_COMPILE, TASK_COMPILE_SOLIDITY_COMPILE_JOBS } from 'hardhat/builtin-tasks/task-names'
import { extendConfig, subtask, task, types } from 'hardhat/config'
import { getFullyQualifiedName } from 'hardhat/utils/contract-names'
import type { PublicConfig as RunTypeChainConfig } from '@collabland/typechain'

import { getDefaultTypechainConfig } from './config'
import { TASK_TYPECHAIN, TASK_TYPECHAIN_GENERATE_TYPES } from './constants'
Expand Down
2 changes: 1 addition & 1 deletion packages/target-ethers-v5/src/codegen/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { isString, values } from 'lodash'
import {
BytecodeWithLinkReferences,
CodegenConfig,
Expand All @@ -8,6 +7,7 @@ import {
FunctionDeclaration,
StructType,
} from '@collabland/typechain'
import { isString, values } from 'lodash'

import { FACTORY_POSTFIX, STRUCT_INPUT_POSTFIX } from '../common'
import {
Expand Down
2 changes: 1 addition & 1 deletion packages/target-ethers-v5/src/codegen/structs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { groupBy } from 'lodash'
import { StructName, StructType } from '@collabland/typechain'
import { groupBy } from 'lodash'

import { STRUCT_INPUT_POSTFIX, STRUCT_OUTPUT_POSTFIX } from '../common'
import { generateInputType, generateOutputType } from './types'
Expand Down
2 changes: 1 addition & 1 deletion packages/target-ethers-v5/src/codegen/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { compact } from 'lodash'
import { AbiOutputParameter, AbiParameter, EvmOutputType, EvmType, TupleType } from '@collabland/typechain'
import { compact } from 'lodash'

import { STRUCT_INPUT_POSTFIX, STRUCT_OUTPUT_POSTFIX } from '../common'

Expand Down
8 changes: 4 additions & 4 deletions packages/target-ethers-v5/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import { readFileSync } from 'fs'
import { compact, partition, uniqBy } from 'lodash'
import { join, relative, resolve } from 'path'
import { Dictionary } from 'ts-essentials'
import {
BytecodeWithLinkReferences,
CodegenConfig,
Expand All @@ -21,6 +17,10 @@ import {
shortenFullJsonFilePath,
TypeChainTarget,
} from '@collabland/typechain'
import { readFileSync } from 'fs'
import { compact, partition, uniqBy } from 'lodash'
import { join, relative, resolve } from 'path'
import { Dictionary } from 'ts-essentials'

import { codegenAbstractContractFactory, codegenContractFactory, codegenContractTypings } from './codegen'
import { generateHardhatHelper } from './codegen/hardhat'
Expand Down
2 changes: 1 addition & 1 deletion packages/target-ethers-v5/test/generation.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect } from 'earljs'
import { CodegenConfig, Contract, EventDeclaration, parse, RawAbiDefinition } from '@collabland/typechain'
import { expect } from 'earljs'

import { codegenContractFactory } from '../src/codegen'
import { generateEventFilters } from '../src/codegen/events'
Expand Down
2 changes: 1 addition & 1 deletion packages/target-ethers-v5/test/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Config } from '@collabland/typechain'
import { expect } from 'earljs'
import { join } from 'path'
import { Config } from '@collabland/typechain'

import EthersTarget from '../src/index'

Expand Down
2 changes: 1 addition & 1 deletion packages/target-ethers-v5/test/structs.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { StructName } from '@collabland/typechain'
import { expect } from 'earljs'
import { format } from 'prettier'
import { StructName } from '@collabland/typechain'

import { generateStructTypes } from '../src/codegen/structs'

Expand Down
2 changes: 1 addition & 1 deletion packages/target-ethers-v6/src/codegen/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint-disable import/no-extraneous-dependencies */
import { isString, values } from 'lodash'
import {
BytecodeWithLinkReferences,
CodegenConfig,
Expand All @@ -9,6 +8,7 @@ import {
FunctionDeclaration,
StructType,
} from '@collabland/typechain'
import { isString, values } from 'lodash'

import { FACTORY_POSTFIX, STRUCT_INPUT_POSTFIX } from '../common'
import {
Expand Down
2 changes: 1 addition & 1 deletion packages/target-ethers-v6/src/codegen/structs.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable import/no-extraneous-dependencies */
import { groupBy } from 'lodash'
import { StructName, StructType } from '@collabland/typechain'
import { groupBy } from 'lodash'

import { STRUCT_INPUT_POSTFIX, STRUCT_OUTPUT_POSTFIX } from '../common'
import { generateInputType, generateOutputType } from './types'
Expand Down
2 changes: 1 addition & 1 deletion packages/target-ethers-v6/src/codegen/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable import/no-extraneous-dependencies */
import { compact } from 'lodash'
import { AbiOutputParameter, AbiParameter, EvmOutputType, EvmType, TupleType } from '@collabland/typechain'
import { compact } from 'lodash'

import { STRUCT_INPUT_POSTFIX, STRUCT_OUTPUT_POSTFIX } from '../common'
import { reservedKeywordsLabels } from './reserved-keywords'
Expand Down
8 changes: 4 additions & 4 deletions packages/target-ethers-v6/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
/* eslint-disable import/no-extraneous-dependencies */
import { readFileSync } from 'fs'
import { compact, partition, uniqBy } from 'lodash'
import { join, relative, resolve } from 'path'
import { Dictionary } from 'ts-essentials'
import {
BytecodeWithLinkReferences,
CodegenConfig,
Expand All @@ -22,6 +18,10 @@ import {
shortenFullJsonFilePath,
TypeChainTarget,
} from '@collabland/typechain'
import { readFileSync } from 'fs'
import { compact, partition, uniqBy } from 'lodash'
import { join, relative, resolve } from 'path'
import { Dictionary } from 'ts-essentials'

import { codegenAbstractContractFactory, codegenContractFactory, codegenContractTypings } from './codegen'
import { generateHardhatHelper } from './codegen/hardhat'
Expand Down
2 changes: 1 addition & 1 deletion packages/target-ethers-v6/test/generation.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable import/no-extraneous-dependencies */
import { expect } from 'earljs'
import { CodegenConfig, Contract, EventDeclaration, parse, RawAbiDefinition } from '@collabland/typechain'
import { expect } from 'earljs'

import { codegenContractFactory } from '../src/codegen'
import { generateEventTypeExport } from '../src/codegen/events'
Expand Down
2 changes: 1 addition & 1 deletion packages/target-ethers-v6/test/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Config } from '@collabland/typechain'
import { expect } from 'earljs'
import { join } from 'path'
import { Config } from '@collabland/typechain'

import EthersTarget from '../src/index'

Expand Down
2 changes: 1 addition & 1 deletion packages/target-ethers-v6/test/structs.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { StructName } from '@collabland/typechain'
import { expect } from 'earljs'
import { format } from 'prettier'
import { StructName } from '@collabland/typechain'

import { generateStructTypes } from '../src/codegen/structs'

Expand Down
2 changes: 1 addition & 1 deletion packages/test-e2e/test/ts-nocheck/ts-nocheck.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { runTypeChain } from '@collabland/typechain'
import { expect } from 'earljs'
import { readFile, remove } from 'fs-extra'
import * as path from 'path'
import { runTypeChain } from '@collabland/typechain'

describe('ts-nocheck', () => {
it('is added to the top of the file, when "tsNocheck" config flag is "true"', async () => {
Expand Down

0 comments on commit 0e10680

Please sign in to comment.