mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39:11 +00:00
chore: fix lint issues
This commit is contained in:
parent
5334353c84
commit
462ef26ea2
8 changed files with 27 additions and 3 deletions
|
@ -28,6 +28,8 @@
|
|||
"lint:terraform": "terraform fmt -recursive -check ./terraform",
|
||||
"lint:types": "tsc --noEmit",
|
||||
"lint:types-api": "yarn workspace @roleypoly/api run lint:types",
|
||||
"lint:types-interactions": "yarn workspace @roleypoly/interactions run lint:types",
|
||||
"lint:types-worker-utils": "yarn workspace @roleypoly/worker-utils run lint:types",
|
||||
"postinstall": "is-ci || husky install",
|
||||
"start": "run-p -c start:*",
|
||||
"start:bot": "yarn workspace @roleypoly/bot start",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { WrappedKVNamespace } from './kv';
|
||||
import { WrappedKVNamespace } from '@roleypoly/worker-utils';
|
||||
|
||||
export const useRateLimiter =
|
||||
(kv: WrappedKVNamespace, key: string, timeoutSeconds: number) =>
|
||||
|
|
7
packages/interactions/bindings.d.ts
vendored
Normal file
7
packages/interactions/bindings.d.ts
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
export {};
|
||||
|
||||
declare global {
|
||||
const DISCORD_PUBLIC_KEY: string;
|
||||
const UI_PUBLIC_URI: string;
|
||||
const API_PUBLIC_URI: string;
|
||||
}
|
|
@ -10,6 +10,7 @@
|
|||
"@cloudflare/workers-types": "^2.2.2",
|
||||
"@roleypoly/types": "*",
|
||||
"@roleypoly/worker-utils": "*",
|
||||
"@types/node": "^16.4.10",
|
||||
"tweetnacl": "^1.0.3"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"compilerOptions": {
|
||||
"outDir": "./dist",
|
||||
"lib": ["esnext", "webworker", "ES2020.BigInt", "ES2020.Promise"],
|
||||
"types": ["@cloudflare/workers-types"],
|
||||
"types": ["@cloudflare/workers-types", "node"],
|
||||
"target": "ES2019"
|
||||
},
|
||||
"include": [
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
{
|
||||
"name": "@roleypoly/worker-utils",
|
||||
"version": "0.1.0",
|
||||
"scripts": {
|
||||
"lint:types": "tsc --noEmit"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@cloudflare/workers-types": "^2.2.2"
|
||||
}
|
||||
|
|
|
@ -28,5 +28,11 @@
|
|||
}
|
||||
},
|
||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
|
||||
"exclude": ["node_modules", "**/*.stories.tsx", "packages/api"]
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"**/*.stories.tsx",
|
||||
"packages/api",
|
||||
"packages/interactions",
|
||||
"packages/worker-utils"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -3585,6 +3585,11 @@
|
|||
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.0.1.tgz#70cedfda26af7a2ca073fdcc9beb2fff4aa693f8"
|
||||
integrity sha512-hBOx4SUlEPKwRi6PrXuTGw1z6lz0fjsibcWCM378YxsSu/6+C30L6CR49zIBKHiwNWCYIcOLjg4OHKZaFeLAug==
|
||||
|
||||
"@types/node@^16.4.10":
|
||||
version "16.4.10"
|
||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.4.10.tgz#e57e2a54fc6da58da94b3571b1cb456d39f88597"
|
||||
integrity sha512-TmVHsm43br64js9BqHWqiDZA+xMtbUpI1MBIA0EyiBmoV9pcEYFOSdj5fr6enZNfh4fChh+AGOLIzGwJnkshyQ==
|
||||
|
||||
"@types/normalize-package-data@^2.4.0":
|
||||
version "2.4.0"
|
||||
resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e"
|
||||
|
|
Loading…
Add table
Reference in a new issue