Skip to content

Commit 7c2ee0d

Browse files
Use eslint caching to make it faster
1 parent 54b3b12 commit 7c2ee0d

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

eslint.config.mjs

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,27 @@
1-
import { defineConfig, globalIgnores } from "eslint/config";
1+
import { defineConfig } from "eslint/config";
22
import { tanstackConfig } from "@tanstack/eslint-config";
33
import eslintConfigPrettier from "eslint-config-prettier";
44

5-
export default defineConfig(
6-
[
7-
globalIgnores([
5+
export default defineConfig([
6+
{
7+
ignores: [
88
".nitro/**/*",
99
".output/**/*",
1010
".tanstack/**/*",
11-
".node_modules/**/*",
12-
]),
13-
],
11+
"node_modules/**/*",
12+
"*.min.js",
13+
"*.bundle.js",
14+
".eslintcache",
15+
"bun.lock",
16+
"*.d.ts",
17+
"db/**/*",
18+
],
19+
},
20+
...tanstackConfig,
21+
eslintConfigPrettier,
1422
{
15-
extends: [tanstackConfig, eslintConfigPrettier],
1623
rules: {
1724
"pnpm/json-enforce-catalog": "off",
1825
},
19-
}
20-
);
26+
},
27+
]);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dev": "bunx --bun vite dev",
88
"build": "bun lint && bunx --bun vite build",
99
"start": "bun run .output/server/index.mjs",
10-
"lint": "bunx --bun eslint .",
10+
"lint": "bunx --bun eslint . --cache --cache-location .eslintcache --max-warnings 0",
1111
"db:generate": "drizzle-kit generate",
1212
"db:migrate": "drizzle-kit migrate",
1313
"db:studio": "drizzle-kit studio"

0 commit comments

Comments
 (0)