create-guren-app 1.11.1 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-guren-app",
3
- "version": "1.11.1",
3
+ "version": "1.12.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -23,6 +23,9 @@ jobs:
23
23
  - name: Type check
24
24
  run: bun run typecheck
25
25
 
26
+ - name: Lint
27
+ run: bun run lint
28
+
26
29
  - name: Integrity check
27
30
  run: bunx guren check --ci --routes routes/api.ts
28
31
 
@@ -0,0 +1,20 @@
1
+ {
2
+ "$schema": "./node_modules/oxlint/configuration_schema.json",
3
+ // The guren rules ship with @guren/cli: await-async-assertion (a bare
4
+ // `expect(...).rejects` statement can never fail its test) and the comment rules.
5
+ "jsPlugins": ["@guren/cli/oxlint"],
6
+ "ignorePatterns": ["node_modules/**", ".guren/**", "dist/**", "public/build/**"],
7
+ "rules": {
8
+ "guren/await-async-assertion": "error",
9
+ // Comment hygiene is advisory: the agent harness feeds these back after every
10
+ // edit, while `bun run lint` stays green on them.
11
+ "guren/comment-length": "warn",
12
+ "guren/comment-banner": "warn",
13
+ "guren/comment-step-label": "warn",
14
+ "guren/comment-history": "warn",
15
+ "guren/comment-param-restates": "warn",
16
+ "no-unused-vars": ["warn", { "ignoreRestSiblings": true, "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }]
17
+ }
18
+ // Type-aware rules (typescript/no-floating-promises and friends) need
19
+ // `bun add -d oxlint-tsgolint` and `"options": { "typeAware": true }`.
20
+ }
@@ -9,6 +9,8 @@
9
9
  "console": "bun bin/console.ts",
10
10
  "codegen": "bunx guren codegen --routes routes/api.ts --force",
11
11
  "typecheck": "tsc --noEmit",
12
+ "lint": "bunx oxlint",
13
+ "lint:fix": "bunx oxlint --fix",
12
14
  "db:make": "bunx guren make:migration",
13
15
  "db:migrate": "bunx guren db:migrate",
14
16
  "db:reset": "bunx guren db:reset",
@@ -18,7 +20,7 @@
18
20
  "test": "bun test"
19
21
  },
20
22
  "dependencies": {
21
- "@guren/cli": "^2.15.0",
23
+ "@guren/cli": "^2.15.1",
22
24
  "@guren/core": "^1.13.1",
23
25
  "@guren/orm": "^2.6.3",
24
26
  "drizzle-orm": "1.0.0-rc.4"
@@ -27,6 +29,7 @@
27
29
  "@guren/testing": "^1.9.0",
28
30
  "bun-types": "^1.3.1",
29
31
  "drizzle-kit": "1.0.0-rc.4",
32
+ "oxlint": "~1.81.0",
30
33
  "typescript": "^5.4.0"
31
34
  }
32
35
  }
@@ -23,6 +23,9 @@ jobs:
23
23
  - name: Type check
24
24
  run: bun run typecheck
25
25
 
26
+ - name: Lint
27
+ run: bun run lint
28
+
26
29
  - name: Integrity check
27
30
  run: bunx guren check --ci
28
31
 
@@ -0,0 +1,20 @@
1
+ {
2
+ "$schema": "./node_modules/oxlint/configuration_schema.json",
3
+ // The guren rules ship with @guren/cli: await-async-assertion (a bare
4
+ // `expect(...).rejects` statement can never fail its test) and the comment rules.
5
+ "jsPlugins": ["@guren/cli/oxlint"],
6
+ "ignorePatterns": ["node_modules/**", ".guren/**", "dist/**", "public/build/**"],
7
+ "rules": {
8
+ "guren/await-async-assertion": "error",
9
+ // Comment hygiene is advisory: the agent harness feeds these back after every
10
+ // edit, while `bun run lint` stays green on them.
11
+ "guren/comment-length": "warn",
12
+ "guren/comment-banner": "warn",
13
+ "guren/comment-step-label": "warn",
14
+ "guren/comment-history": "warn",
15
+ "guren/comment-param-restates": "warn",
16
+ "no-unused-vars": ["warn", { "ignoreRestSiblings": true, "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }]
17
+ }
18
+ // Type-aware rules (typescript/no-floating-promises and friends) need
19
+ // `bun add -d oxlint-tsgolint` and `"options": { "typeAware": true }`.
20
+ }
@@ -9,6 +9,8 @@
9
9
  "dev:server": "bun --hot bin/serve.ts",
10
10
  "console": "bun bin/console.ts",
11
11
  "typecheck": "tsc --noEmit",
12
+ "lint": "bunx oxlint",
13
+ "lint:fix": "bunx oxlint --fix",
12
14
  "test": "bun test",
13
15
  "build": "bun run codegen && bunx vite build",
14
16
  "preview": "NODE_ENV=production bun bin/serve.ts",
@@ -19,7 +21,7 @@
19
21
  "db:seed": "bunx guren db:seed"
20
22
  },
21
23
  "dependencies": {
22
- "@guren/cli": "^2.15.0",
24
+ "@guren/cli": "^2.15.1",
23
25
  "@guren/core": "^1.13.1",
24
26
  "@guren/inertia-client": "^1.1.3",
25
27
  "@guren/orm": "^2.6.3",
@@ -38,6 +40,7 @@
38
40
  "bun-types": "^1.3.1",
39
41
  "drizzle-kit": "1.0.0-rc.4",
40
42
  "mermaid": "^11.0.0",
43
+ "oxlint": "~1.81.0",
41
44
  "tailwindcss": "^4.2.2",
42
45
  "typescript": "^5.4.0",
43
46
  "vite": "^8.0.0"