Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jtoar committed May 18, 2023
1 parent f3b5882 commit 4895605
Show file tree
Hide file tree
Showing 17 changed files with 23 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import path from 'path'

import task from 'tasuku'

import getFilesWithPattern from '../../../lib/getFilesWithPattern'
import { getPaths } from '@redwoodjs/project-config'

import getFilesWithPattern from '../../../lib/getFilesWithPattern'
import runTransform from '../../../lib/runTransform'

export const command = 'update-api-imports'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import path from 'path'

import task from 'tasuku'

import getFilesWithPattern from '../../../lib/getFilesWithPattern'
import { getPaths } from '@redwoodjs/project-config'

import getFilesWithPattern from '../../../lib/getFilesWithPattern'
import runTransform from '../../../lib/runTransform'

export const command = 'update-forms'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import fg from 'fast-glob'
import task from 'tasuku'

import { getPaths } from '@redwoodjs/project-config'

import runTransform from '../../../lib/runTransform'

export const command = 'update-scenarios'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import path from 'path'

import { fetch } from '@whatwg-node/fetch'

import getRootPackageJson from '../../../lib/getRootPackageJSON'
import { getPaths } from '@redwoodjs/project-config'

import getRootPackageJson from '../../../lib/getRootPackageJSON'
import isTSProject from '../../../lib/isTSProject'
import ts2js from '../../../lib/ts2js'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import fs from 'fs'
import path from 'path'

import { getPaths } from '@redwoodjs/project-config'

import prettify from '../../../lib/prettify'

export const removeBabelConfig = async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import task from 'tasuku'
import type { TaskInnerAPI } from 'tasuku'

import { getPaths } from '@redwoodjs/project-config'

import runTransform from '../../../lib/runTransform'

export const command = 'update-cell-mocks'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import path from 'path'
import task from 'tasuku'

import { getPaths } from '@redwoodjs/project-config'

import isTSProject from '../../../lib/isTSProject'
import runTransform from '../../../lib/runTransform'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
import fs from 'fs'
import path from 'path'

import fetchFileFromTemplate from '../../../lib/fetchFileFromTemplate'
import { getPaths } from '@redwoodjs/project-config'

import fetchFileFromTemplate from '../../../lib/fetchFileFromTemplate'
import runTransform from '../../../lib/runTransform'

export default async function updateJestConfig() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import task from 'tasuku'
import { TaskInnerAPI } from 'tasuku'

import { getPaths } from '@redwoodjs/project-config'

import runTransform from '../../../lib/runTransform'

export const command = 'rename-verifier-timestamp'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { getPaths } from '@redwoodjs/project-config'

import prettify from '../../../lib/prettify'

export default async function addApiAliasToTsConfig() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import fg from 'fast-glob'
import task from 'tasuku'

import { getPaths } from '@redwoodjs/project-config'

import prettify from '../../../lib/prettify'
import runTransform from '../../../lib/runTransform'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import fg from 'fast-glob'
import task, { TaskInnerAPI } from 'tasuku'

import { getPaths } from '@redwoodjs/project-config'

import runTransform from '../../../lib/runTransform'

export const command = 'update-resolver-types'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import path from 'path'
import task, { TaskInnerAPI } from 'tasuku'

import { getPaths } from '@redwoodjs/project-config'

import isTSProject from '../../../lib/isTSProject'
import runTransform from '../../../lib/runTransform'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import path from 'path'
import task from 'tasuku'

import { getPaths } from '@redwoodjs/project-config'

import isTSProject from '../../../lib/isTSProject'
import runTransform from '../../../lib/runTransform'

Expand All @@ -16,12 +17,7 @@ export const handler = () => {
await runTransform({
transformPath: path.join(__dirname, 'useArmor.js'),
targetPaths: [
path.join(
getPaths().api.base,
'src',
'functions',
graphqlHandlerFile
),
path.join(getPaths().api.base, 'src', 'functions', graphqlHandlerFile),
],
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import path from 'path'

import task from 'tasuku'

import getFilesWithPattern from '../../../lib/getFilesWithPattern'
import { getPaths } from '@redwoodjs/project-config'

import getFilesWithPattern from '../../../lib/getFilesWithPattern'
import runTransform from '../../../lib/runTransform'

export const command = 'rename-validate-with'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import execa from 'execa'
import task from 'tasuku'

import { getPaths } from '@redwoodjs/project-config'

import isTSProject from '../../../lib/isTSProject'
import runTransform from '../../../lib/runTransform'

Expand Down
1 change: 1 addition & 0 deletions packages/codemods/src/lib/ts2js.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { transform } from '@babel/core'

import { getPaths } from '@redwoodjs/project-config'

import prettify from './prettify'

const ts2js = (file: string) => {
Expand Down

0 comments on commit 4895605

Please sign in to comment.