Skip to content

Commit

Permalink
Merge pull request #1056 from shengxj1/chore/eslint-cache
Browse files Browse the repository at this point in the history
chore: improve eslint by --cache
  • Loading branch information
lalalune authored Dec 14, 2024
2 parents bfd19a0 + 3cf78bc commit 54a364a
Show file tree
Hide file tree
Showing 27 changed files with 29 additions and 28 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ tsup.config.bundled_*.mjs

.turbo

coverage
coverage
.eslintcache
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/_examples/plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"scripts": {
"build": "tsup --format esm --dts",
"dev": "tsup --format esm --dts --watch",
"lint": "eslint . --fix"
"lint": "eslint --fix --cache ."
}
}
2 changes: 1 addition & 1 deletion packages/adapter-postgres/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"scripts": {
"build": "tsup --format esm --dts",
"dev": "tsup --format esm --dts --watch",
"lint": "eslint . --fix"
"lint": "eslint --fix --cache ."
}
}
2 changes: 1 addition & 1 deletion packages/adapter-sqlite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-sqljs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-supabase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/client-auto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/client-direct/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/client-discord/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/client-github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"scripts": {
"build": "tsup --format esm --dts",
"dev": "tsup --format esm --dts --watch",
"lint": "eslint . --fix"
"lint": "eslint --fix --cache ."
}
}
2 changes: 1 addition & 1 deletion packages/client-telegram/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"scripts": {
"build": "tsup --format esm --dts",
"dev": "tsup --format esm --dts --watch",
"lint": "eslint . --fix"
"lint": "eslint --fix --cache ."
}
}
2 changes: 1 addition & 1 deletion packages/client-twitter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-eliza-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"scripts": {
"build": "unbuild",
"lint": "eslint . --fix",
"lint": "eslint --fix --cache .",
"start": "node ./dist/index.cjs",
"automd": "automd"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-aptos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"scripts": {
"build": "tsup --format esm --dts",
"dev": "tsup --format esm --dts --watch",
"lint": "eslint . --fix",
"lint": "eslint --fix --cache .",
"test": "vitest run"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-bootstrap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-coinbase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"scripts": {
"build": "tsup --format esm --dts",
"dev": "tsup --format esm --dts --watch",
"lint": "eslint . --fix"
"lint": "eslint --fix --cache ."
}
}
2 changes: 1 addition & 1 deletion packages/plugin-flow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-image-generation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-solana/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-starknet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-tee/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-trustdb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-video-generation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-whatsapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:*",
Expand Down

0 comments on commit 54a364a

Please sign in to comment.