Skip to content

Commit 54a364a

Browse files
authored
Merge pull request #1056 from shengxj1/chore/eslint-cache
chore: improve eslint by --cache
2 parents bfd19a0 + 3cf78bc commit 54a364a

File tree

27 files changed

+29
-28
lines changed

27 files changed

+29
-28
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,5 @@ tsup.config.bundled_*.mjs
4848

4949
.turbo
5050

51-
coverage
51+
coverage
52+
.eslintcache

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"start:debug": "cross-env NODE_ENV=development VERBOSE=true DEBUG=eliza:* pnpm --filter \"@ai16z/agent\" start --isRoot",
1010
"dev": "bash ./scripts/dev.sh",
1111
"lint": "bash ./scripts/lint.sh",
12-
"prettier-check": "npx prettier --check .",
13-
"prettier": "npx prettier --write .",
12+
"prettier-check": "npx prettier --check --cache .",
13+
"prettier": "npx prettier --write --cache .",
1414
"release": "pnpm build && pnpm prettier && npx lerna publish --no-private --force-publish",
1515
"clean": "bash ./scripts/clean.sh",
1616
"docker:build": "bash ./scripts/docker.sh build",

packages/_examples/plugin/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"scripts": {
1515
"build": "tsup --format esm --dts",
1616
"dev": "tsup --format esm --dts --watch",
17-
"lint": "eslint . --fix"
17+
"lint": "eslint --fix --cache ."
1818
}
1919
}

packages/adapter-postgres/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
"scripts": {
1616
"build": "tsup --format esm --dts",
1717
"dev": "tsup --format esm --dts --watch",
18-
"lint": "eslint . --fix"
18+
"lint": "eslint --fix --cache ."
1919
}
2020
}

packages/adapter-sqlite/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"scripts": {
1717
"build": "tsup --format esm --dts",
1818
"dev": "tsup --format esm --dts --watch",
19-
"lint": "eslint . --fix"
19+
"lint": "eslint --fix --cache ."
2020
},
2121
"peerDependencies": {
2222
"whatwg-url": "7.1.0"

packages/adapter-sqljs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"scripts": {
1717
"build": "tsup --format esm --dts",
1818
"dev": "tsup --format esm --dts --watch",
19-
"lint": "eslint . --fix"
19+
"lint": "eslint --fix --cache ."
2020
},
2121
"peerDependencies": {
2222
"whatwg-url": "7.1.0"

packages/adapter-supabase/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"scripts": {
1515
"build": "tsup --format esm --dts",
1616
"dev": "tsup --format esm --dts --watch",
17-
"lint": "eslint . --fix"
17+
"lint": "eslint --fix --cache ."
1818
},
1919
"peerDependencies": {
2020
"whatwg-url": "7.1.0"

packages/client-auto/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"scripts": {
2020
"build": "tsup --format esm --dts",
2121
"dev": "tsup --format esm --dts --watch",
22-
"lint": "eslint . --fix"
22+
"lint": "eslint --fix --cache ."
2323
},
2424
"peerDependencies": {
2525
"whatwg-url": "7.1.0"

packages/client-direct/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"scripts": {
2323
"build": "tsup --format esm --dts",
2424
"dev": "tsup --format esm --dts --watch",
25-
"lint": "eslint . --fix"
25+
"lint": "eslint --fix --cache ."
2626
},
2727
"peerDependencies": {
2828
"whatwg-url": "7.1.0"

packages/client-discord/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"scripts": {
2222
"build": "tsup --format esm --dts",
2323
"dev": "tsup --format esm --dts --watch",
24-
"lint": "eslint . --fix"
24+
"lint": "eslint --fix --cache ."
2525
},
2626
"trustedDependencies": {
2727
"@discordjs/opus": "github:discordjs/opus",

packages/client-github/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
"scripts": {
1919
"build": "tsup --format esm --dts",
2020
"dev": "tsup --format esm --dts --watch",
21-
"lint": "eslint . --fix"
21+
"lint": "eslint --fix --cache ."
2222
}
2323
}

packages/client-telegram/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"scripts": {
1717
"build": "tsup --format esm --dts",
1818
"dev": "tsup --format esm --dts --watch",
19-
"lint": "eslint . --fix"
19+
"lint": "eslint --fix --cache ."
2020
}
2121
}

packages/client-twitter/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"scripts": {
1717
"build": "tsup --format esm --dts",
1818
"dev": "tsup --format esm --dts --watch",
19-
"lint": "eslint . --fix"
19+
"lint": "eslint --fix --cache ."
2020
},
2121
"peerDependencies": {
2222
"whatwg-url": "7.1.0"

packages/core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"types": "dist/index.d.ts",
88
"scripts": {
99
"build": "tsup --format esm --dts",
10-
"lint": "eslint . --fix",
10+
"lint": "eslint --fix --cache .",
1111
"watch": "tsc --watch",
1212
"dev": "tsup --format esm --dts --watch",
1313
"build:docs": "cd docs && pnpm run build",

packages/create-eliza-app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"scripts": {
1414
"build": "unbuild",
15-
"lint": "eslint . --fix",
15+
"lint": "eslint --fix --cache .",
1616
"start": "node ./dist/index.cjs",
1717
"automd": "automd"
1818
},

packages/plugin-aptos/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"scripts": {
1717
"build": "tsup --format esm --dts",
1818
"dev": "tsup --format esm --dts --watch",
19-
"lint": "eslint . --fix",
19+
"lint": "eslint --fix --cache .",
2020
"test": "vitest run"
2121
},
2222
"peerDependencies": {

packages/plugin-bootstrap/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"scripts": {
1212
"build": "tsup --format esm --dts",
1313
"dev": "tsup --format esm --dts --watch",
14-
"lint": "eslint . --fix"
14+
"lint": "eslint --fix --cache ."
1515
},
1616
"peerDependencies": {
1717
"whatwg-url": "7.1.0"

packages/plugin-coinbase/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"scripts": {
2020
"build": "tsup --format esm --dts",
2121
"dev": "tsup --format esm --dts --watch",
22-
"lint": "eslint . --fix"
22+
"lint": "eslint --fix --cache ."
2323
}
2424
}

packages/plugin-flow/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"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",
2828
"build": "tsup --format esm --dts",
2929
"dev": "tsup --format esm --dts --watch",
30-
"lint": "eslint . --fix",
30+
"lint": "eslint --fix --cache .",
3131
"test": "vitest run"
3232
},
3333
"peerDependencies": {

packages/plugin-image-generation/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"scripts": {
1212
"build": "tsup --format esm --dts",
1313
"dev": "tsup --format esm --dts --watch",
14-
"lint": "eslint . --fix"
14+
"lint": "eslint --fix --cache ."
1515
},
1616
"peerDependencies": {
1717
"whatwg-url": "7.1.0"

packages/plugin-node/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"scripts": {
7676
"build": "tsup --format esm --dts",
7777
"dev": "tsup --format esm --dts --watch",
78-
"lint": "eslint . --fix",
78+
"lint": "eslint --fix --cache .",
7979
"postinstall": "node scripts/postinstall.js"
8080
},
8181
"peerDependencies": {

packages/plugin-solana/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"scripts": {
2323
"build": "tsup --format esm --dts",
2424
"dev": "tsup --format esm --dts --watch",
25-
"lint": "eslint . --fix",
25+
"lint": "eslint --fix --cache .",
2626
"test": "vitest run"
2727
},
2828
"peerDependencies": {

packages/plugin-starknet/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"dev": "tsup --format esm --dts --watch",
2020
"test": "vitest run",
2121
"test:watch": "vitest",
22-
"lint": "eslint . --fix"
22+
"lint": "eslint --fix --cache ."
2323
},
2424
"peerDependencies": {
2525
"whatwg-url": "7.1.0"

packages/plugin-tee/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"scripts": {
2121
"build": "tsup --format esm --dts",
2222
"dev": "tsup --format esm --dts --watch",
23-
"lint": "eslint . --fix"
23+
"lint": "eslint --fix --cache ."
2424
},
2525
"peerDependencies": {
2626
"whatwg-url": "7.1.0"

packages/plugin-trustdb/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"dev": "tsup --format esm --dts --watch",
1717
"test": "vitest run",
1818
"test:watch": "vitest",
19-
"lint": "eslint . --fix"
19+
"lint": "eslint --fix --cache ."
2020
},
2121
"devDependencies": {
2222
"@types/dompurify": "3.2.0"

packages/plugin-video-generation/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"scripts": {
1212
"build": "tsup --format esm --dts",
1313
"dev": "tsup --format esm --dts --watch",
14-
"lint": "eslint . --fix"
14+
"lint": "eslint --fix --cache ."
1515
},
1616
"peerDependencies": {
1717
"whatwg-url": "7.1.0"

packages/plugin-whatsapp/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "tsup --format esm --dts",
99
"dev": "tsup --format esm --dts --watch",
1010
"test": "jest",
11-
"lint": "eslint . --fix"
11+
"lint": "eslint --fix --cache ."
1212
},
1313
"dependencies": {
1414
"@ai16z/eliza": "workspace:*",

0 commit comments

Comments
 (0)