Skip to content

Commit f5e2c51

Browse files
author
StackMemory Bot (CLI)
committed
chore: fix lint errors and tsc config for pre-push gate
- Remove unused imports in rules.ts (prettier error) - Point typecheck at tsconfig.check.json - Fix .tsbuildinfo glob in .gitignore
1 parent d307709 commit f5e2c51

4 files changed

Lines changed: 5 additions & 10 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ vendor/
55

66
# Build outputs
77
dist/
8-
.tsbuildinfo
8+
.tsbuildinfo*
99
build/
1010
out/
1111
*.out

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
"postinstall": "node scripts/install-claude-hooks-auto.js || true",
101101
"init": "node dist/scripts/initialize.js",
102102
"build": "rm -rf dist && node esbuild.config.js",
103-
"typecheck": "NODE_OPTIONS='--max-old-space-size=8192' tsc --noEmit",
103+
"typecheck": "NODE_OPTIONS='--max-old-space-size=8192' tsc --project tsconfig.check.json",
104104
"lint": "eslint 'src/**/*.ts' 'scripts/**/*.ts'",
105105
"lint:fix": "eslint 'src/**/*.ts' 'scripts/**/*.ts' --fix --max-warnings=-1",
106106
"lint:fast": "oxlint src scripts",

src/cli/commands/rules.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@ import Database from 'better-sqlite3';
99
import * as fs from 'fs';
1010
import * as path from 'path';
1111
import { RuleEngine } from '../../core/rules/rule-engine.js';
12-
import type {
13-
RuleContext,
14-
RuleTrigger,
15-
RuleSeverity,
16-
RuleRow,
17-
} from '../../core/rules/types.js';
12+
import type { RuleContext, RuleTrigger } from '../../core/rules/types.js';
1813
import { filterByScope } from '../../core/rules/built-in-rules.js';
1914

2015
function getDb(): Database.Database {

tsconfig.check.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"declarationMap": false,
77
"sourceMap": false,
88
"incremental": true,
9-
"tsBuildInfoFile": ".tsbuildinfo"
9+
"tsBuildInfoFile": ".tsbuildinfo-check"
1010
},
11-
"include": ["src/**/*"],
11+
"include": ["src/**/*", "scripts/**/*"],
1212
"exclude": [
1313
"node_modules",
1414
"dist",

0 commit comments

Comments
 (0)