Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed May 16, 2024
1 parent cd3d0d1 commit ca3f86c
Show file tree
Hide file tree
Showing 24 changed files with 59 additions and 261 deletions.
8 changes: 1 addition & 7 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
module.exports = {
plugins: [require('@trivago/prettier-plugin-sort-imports')],
singleQuote: true,
jsxSingleQuote: true,
semi: false,
Expand All @@ -8,10 +7,5 @@ module.exports = {
bracketSpacing: true,
bracketSameLine: false,
arrowParens: 'always',
trailingComma: 'none',
importOrderParserPlugins: ['typescript'],
importOrder: ['^node:.*', '<THIRD_PARTY_MODULES>', '^(@/(.*)$)', '^[./]'],
importOrderSeparation: true,
importOrderSortSpecifiers: true,
importOrderGroupNamespaceSpecifiers: true
trailingComma: 'none'
}
4 changes: 2 additions & 2 deletions bin/debug-answer-engine.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import pMap from 'p-map'

import type * as types from '../src/types.js'
import { createAnswerEngine } from '../src/create-answer-engine.js'
import { parseCLIArgs } from '../src/parse-cli-args.js'
import { respondToNewMentions } from '../src/respond-to-new-mentions.js'
import { openaiClient } from '../src/services/openai-client.js'
import { getTwitterClient } from '../src/services/twitter-client.js'
import type * as types from '../src/types.js'
import { assert } from '../src/utils.js'

/**
Expand All @@ -31,7 +31,7 @@ async function main() {
argv.flags.answerEngine as types.AnswerEngineType
)

let twitterClient = await getTwitterClient()
const twitterClient = await getTwitterClient()
const { data: twitterBotUser } = await twitterClient.users.findMyUser()
const twitterBotUserId = twitterBotUser?.id

Expand Down
3 changes: 2 additions & 1 deletion bin/debug-scrape-url.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import '../src/config.js'

import pMap from 'p-map'

import '../src/config.js'
import { ScraperClient } from '../src/services/scraper-client.js'
import { omit } from '../src/utils.js'

Expand Down
6 changes: 3 additions & 3 deletions bin/xbot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import delay from 'delay'
import ms from 'ms'
import random from 'random'

import * as db from '../src/db.js'
import type * as types from '../src/types.js'
import { BotError } from '../src/bot-error.js'
import { createAnswerEngine } from '../src/create-answer-engine.js'
import * as db from '../src/db.js'
import { parseCLIArgs } from '../src/parse-cli-args.js'
import { respondToNewMentions } from '../src/respond-to-new-mentions.js'
import { openaiClient } from '../src/services/openai-client.js'
import { getTwitterClient } from '../src/services/twitter-client.js'
import { maxTwitterId } from '../src/twitter-utils.js'
import type * as types from '../src/types.js'
import { pick } from '../src/utils.js'

/**
Expand All @@ -34,7 +34,7 @@ async function main() {
}

const dbSinceMentionId = await db.getSinceMentionId({ twitterBotUserId })
let initialSinceMentionId =
const initialSinceMentionId =
(argv.flags.resolveAllMentions
? undefined
: argv.flags.sinceMentionId || dbSinceMentionId) ?? '0'
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"devDependencies": {
"@dexaai/eslint-config": "^1.3.0",
"@total-typescript/ts-reset": "^0.5.1",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/dotenv-safe": "^8.1.6",
"@types/ms": "^0.7.34",
"@types/node": "^20.12.12",
Expand Down Expand Up @@ -84,7 +83,8 @@
"rules": {
"no-console": "off",
"import/order": "off",
"no-process-env": "off"
"no-process-env": "off",
"no-use-before-define": "off"
}
}
}
203 changes: 0 additions & 203 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ca3f86c

Please sign in to comment.