diff --git a/.gitignore b/.gitignore index 17300ccdb78..a406c869755 100644 --- a/.gitignore +++ b/.gitignore @@ -48,4 +48,5 @@ tsup.config.bundled_*.mjs .turbo -coverage \ No newline at end of file +coverage +.eslintcache \ No newline at end of file diff --git a/package.json b/package.json index 55021a62d38..cb2da2b438a 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ "start:debug": "cross-env NODE_ENV=development VERBOSE=true DEBUG=eliza:* pnpm --filter \"@ai16z/agent\" start --isRoot", "dev": "bash ./scripts/dev.sh", "lint": "bash ./scripts/lint.sh", - "prettier-check": "npx prettier --check .", - "prettier": "npx prettier --write .", + "prettier-check": "npx prettier --check --cache .", + "prettier": "npx prettier --write --cache .", "release": "pnpm build && pnpm prettier && npx lerna publish --no-private --force-publish", "clean": "bash ./scripts/clean.sh", "docker:build": "bash ./scripts/docker.sh build", diff --git a/packages/_examples/plugin/package.json b/packages/_examples/plugin/package.json index a9d8ab03e06..5d2a4b186e4 100644 --- a/packages/_examples/plugin/package.json +++ b/packages/_examples/plugin/package.json @@ -14,6 +14,6 @@ "scripts": { "build": "tsup --format esm --dts", "dev": "tsup --format esm --dts --watch", - "lint": "eslint . --fix" + "lint": "eslint --fix --cache ." } } diff --git a/packages/adapter-postgres/package.json b/packages/adapter-postgres/package.json index 95df9a081a2..d31786af3e6 100644 --- a/packages/adapter-postgres/package.json +++ b/packages/adapter-postgres/package.json @@ -15,6 +15,6 @@ "scripts": { "build": "tsup --format esm --dts", "dev": "tsup --format esm --dts --watch", - "lint": "eslint . --fix" + "lint": "eslint --fix --cache ." } } diff --git a/packages/adapter-sqlite/package.json b/packages/adapter-sqlite/package.json index e7472d01825..0a073ffa750 100644 --- a/packages/adapter-sqlite/package.json +++ b/packages/adapter-sqlite/package.json @@ -16,7 +16,7 @@ "scripts": { "build": "tsup --format esm --dts", "dev": "tsup --format esm --dts --watch", - "lint": "eslint . --fix" + "lint": "eslint --fix --cache ." }, "peerDependencies": { "whatwg-url": "7.1.0" diff --git a/packages/adapter-sqljs/package.json b/packages/adapter-sqljs/package.json index 3cf49eab2b6..12bfd7955d7 100644 --- a/packages/adapter-sqljs/package.json +++ b/packages/adapter-sqljs/package.json @@ -16,7 +16,7 @@ "scripts": { "build": "tsup --format esm --dts", "dev": "tsup --format esm --dts --watch", - "lint": "eslint . --fix" + "lint": "eslint --fix --cache ." }, "peerDependencies": { "whatwg-url": "7.1.0" diff --git a/packages/adapter-supabase/package.json b/packages/adapter-supabase/package.json index 46f2e555417..42ac235158e 100644 --- a/packages/adapter-supabase/package.json +++ b/packages/adapter-supabase/package.json @@ -14,7 +14,7 @@ "scripts": { "build": "tsup --format esm --dts", "dev": "tsup --format esm --dts --watch", - "lint": "eslint . --fix" + "lint": "eslint --fix --cache ." }, "peerDependencies": { "whatwg-url": "7.1.0" diff --git a/packages/client-auto/package.json b/packages/client-auto/package.json index f2711101bc2..bba44fe65b1 100644 --- a/packages/client-auto/package.json +++ b/packages/client-auto/package.json @@ -19,7 +19,7 @@ "scripts": { "build": "tsup --format esm --dts", "dev": "tsup --format esm --dts --watch", - "lint": "eslint . --fix" + "lint": "eslint --fix --cache ." }, "peerDependencies": { "whatwg-url": "7.1.0" diff --git a/packages/client-direct/package.json b/packages/client-direct/package.json index b46063ea367..7ff770a71bf 100644 --- a/packages/client-direct/package.json +++ b/packages/client-direct/package.json @@ -22,7 +22,7 @@ "scripts": { "build": "tsup --format esm --dts", "dev": "tsup --format esm --dts --watch", - "lint": "eslint . --fix" + "lint": "eslint --fix --cache ." }, "peerDependencies": { "whatwg-url": "7.1.0" diff --git a/packages/client-discord/package.json b/packages/client-discord/package.json index 87237a944ac..eca9bc8ce03 100644 --- a/packages/client-discord/package.json +++ b/packages/client-discord/package.json @@ -21,7 +21,7 @@ "scripts": { "build": "tsup --format esm --dts", "dev": "tsup --format esm --dts --watch", - "lint": "eslint . --fix" + "lint": "eslint --fix --cache ." }, "trustedDependencies": { "@discordjs/opus": "github:discordjs/opus", diff --git a/packages/client-github/package.json b/packages/client-github/package.json index 1efb7deb841..183e4fb98df 100644 --- a/packages/client-github/package.json +++ b/packages/client-github/package.json @@ -18,6 +18,6 @@ "scripts": { "build": "tsup --format esm --dts", "dev": "tsup --format esm --dts --watch", - "lint": "eslint . --fix" + "lint": "eslint --fix --cache ." } } diff --git a/packages/client-telegram/package.json b/packages/client-telegram/package.json index c32af497105..597abf5e0c1 100644 --- a/packages/client-telegram/package.json +++ b/packages/client-telegram/package.json @@ -16,6 +16,6 @@ "scripts": { "build": "tsup --format esm --dts", "dev": "tsup --format esm --dts --watch", - "lint": "eslint . --fix" + "lint": "eslint --fix --cache ." } } diff --git a/packages/client-twitter/package.json b/packages/client-twitter/package.json index 89781953454..7bbc095b217 100644 --- a/packages/client-twitter/package.json +++ b/packages/client-twitter/package.json @@ -16,7 +16,7 @@ "scripts": { "build": "tsup --format esm --dts", "dev": "tsup --format esm --dts --watch", - "lint": "eslint . --fix" + "lint": "eslint --fix --cache ." }, "peerDependencies": { "whatwg-url": "7.1.0" diff --git a/packages/core/package.json b/packages/core/package.json index 7b20169e411..daf8c5f3df7 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -7,7 +7,7 @@ "types": "dist/index.d.ts", "scripts": { "build": "tsup --format esm --dts", - "lint": "eslint . --fix", + "lint": "eslint --fix --cache .", "watch": "tsc --watch", "dev": "tsup --format esm --dts --watch", "build:docs": "cd docs && pnpm run build", diff --git a/packages/create-eliza-app/package.json b/packages/create-eliza-app/package.json index 0206679e790..cb210c8f914 100644 --- a/packages/create-eliza-app/package.json +++ b/packages/create-eliza-app/package.json @@ -12,7 +12,7 @@ }, "scripts": { "build": "unbuild", - "lint": "eslint . --fix", + "lint": "eslint --fix --cache .", "start": "node ./dist/index.cjs", "automd": "automd" }, diff --git a/packages/plugin-aptos/package.json b/packages/plugin-aptos/package.json index 026a58d1588..2eaa2c97616 100644 --- a/packages/plugin-aptos/package.json +++ b/packages/plugin-aptos/package.json @@ -17,7 +17,7 @@ "scripts": { "build": "tsup --format esm --dts", "dev": "tsup --format esm --dts --watch", - "lint": "eslint . --fix", + "lint": "eslint --fix --cache .", "test": "vitest run" }, "peerDependencies": { diff --git a/packages/plugin-bootstrap/package.json b/packages/plugin-bootstrap/package.json index fe6104f639d..8edf2529572 100644 --- a/packages/plugin-bootstrap/package.json +++ b/packages/plugin-bootstrap/package.json @@ -11,7 +11,7 @@ "scripts": { "build": "tsup --format esm --dts", "dev": "tsup --format esm --dts --watch", - "lint": "eslint . --fix" + "lint": "eslint --fix --cache ." }, "peerDependencies": { "whatwg-url": "7.1.0" diff --git a/packages/plugin-coinbase/package.json b/packages/plugin-coinbase/package.json index 01b4bd3a1ae..f836f948c89 100644 --- a/packages/plugin-coinbase/package.json +++ b/packages/plugin-coinbase/package.json @@ -19,6 +19,6 @@ "scripts": { "build": "tsup --format esm --dts", "dev": "tsup --format esm --dts --watch", - "lint": "eslint . --fix" + "lint": "eslint --fix --cache ." } } diff --git a/packages/plugin-flow/package.json b/packages/plugin-flow/package.json index ae0fd2976b6..125d391b9ac 100644 --- a/packages/plugin-flow/package.json +++ b/packages/plugin-flow/package.json @@ -28,7 +28,7 @@ "lines": "find . \\( -name '*.cdc' -o -name '*.ts' \\) -not -path '*/node_modules/*' -not -path '*/tests/*' -not -path '*/deps/*' -not -path '*/dist/*' -not -path '*/imports*' | xargs wc -l", "build": "tsup --format esm --dts", "dev": "tsup --format esm --dts --watch", - "lint": "eslint . --fix", + "lint": "eslint --fix --cache .", "test": "vitest run" }, "peerDependencies": { diff --git a/packages/plugin-image-generation/package.json b/packages/plugin-image-generation/package.json index 950df7ead51..36615554a6b 100644 --- a/packages/plugin-image-generation/package.json +++ b/packages/plugin-image-generation/package.json @@ -11,7 +11,7 @@ "scripts": { "build": "tsup --format esm --dts", "dev": "tsup --format esm --dts --watch", - "lint": "eslint . --fix" + "lint": "eslint --fix --cache ." }, "peerDependencies": { "whatwg-url": "7.1.0" diff --git a/packages/plugin-node/package.json b/packages/plugin-node/package.json index 630305c903d..1040e4a37b5 100644 --- a/packages/plugin-node/package.json +++ b/packages/plugin-node/package.json @@ -75,7 +75,7 @@ "scripts": { "build": "tsup --format esm --dts", "dev": "tsup --format esm --dts --watch", - "lint": "eslint . --fix", + "lint": "eslint --fix --cache .", "postinstall": "node scripts/postinstall.js" }, "peerDependencies": { diff --git a/packages/plugin-solana/package.json b/packages/plugin-solana/package.json index 2aa671fb7af..30930e41dd9 100644 --- a/packages/plugin-solana/package.json +++ b/packages/plugin-solana/package.json @@ -22,7 +22,7 @@ "scripts": { "build": "tsup --format esm --dts", "dev": "tsup --format esm --dts --watch", - "lint": "eslint . --fix", + "lint": "eslint --fix --cache .", "test": "vitest run" }, "peerDependencies": { diff --git a/packages/plugin-starknet/package.json b/packages/plugin-starknet/package.json index 39a651ce02a..e8a2dc8a88d 100644 --- a/packages/plugin-starknet/package.json +++ b/packages/plugin-starknet/package.json @@ -19,7 +19,7 @@ "dev": "tsup --format esm --dts --watch", "test": "vitest run", "test:watch": "vitest", - "lint": "eslint . --fix" + "lint": "eslint --fix --cache ." }, "peerDependencies": { "whatwg-url": "7.1.0" diff --git a/packages/plugin-tee/package.json b/packages/plugin-tee/package.json index 6793587c8cc..9e144197df6 100644 --- a/packages/plugin-tee/package.json +++ b/packages/plugin-tee/package.json @@ -20,7 +20,7 @@ "scripts": { "build": "tsup --format esm --dts", "dev": "tsup --format esm --dts --watch", - "lint": "eslint . --fix" + "lint": "eslint --fix --cache ." }, "peerDependencies": { "whatwg-url": "7.1.0" diff --git a/packages/plugin-trustdb/package.json b/packages/plugin-trustdb/package.json index f2d904a0cb7..96451907ed8 100644 --- a/packages/plugin-trustdb/package.json +++ b/packages/plugin-trustdb/package.json @@ -16,7 +16,7 @@ "dev": "tsup --format esm --dts --watch", "test": "vitest run", "test:watch": "vitest", - "lint": "eslint . --fix" + "lint": "eslint --fix --cache ." }, "devDependencies": { "@types/dompurify": "3.2.0" diff --git a/packages/plugin-video-generation/package.json b/packages/plugin-video-generation/package.json index fe9eff95cd1..a867e18b721 100644 --- a/packages/plugin-video-generation/package.json +++ b/packages/plugin-video-generation/package.json @@ -11,7 +11,7 @@ "scripts": { "build": "tsup --format esm --dts", "dev": "tsup --format esm --dts --watch", - "lint": "eslint . --fix" + "lint": "eslint --fix --cache ." }, "peerDependencies": { "whatwg-url": "7.1.0" diff --git a/packages/plugin-whatsapp/package.json b/packages/plugin-whatsapp/package.json index 7e2cdb8da1d..9715ed59ebb 100644 --- a/packages/plugin-whatsapp/package.json +++ b/packages/plugin-whatsapp/package.json @@ -8,7 +8,7 @@ "build": "tsup --format esm --dts", "dev": "tsup --format esm --dts --watch", "test": "jest", - "lint": "eslint . --fix" + "lint": "eslint --fix --cache ." }, "dependencies": { "@ai16z/eliza": "workspace:*",