-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathlint-staged.config.js
More file actions
27 lines (21 loc) · 948 Bytes
/
lint-staged.config.js
File metadata and controls
27 lines (21 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
module.exports = {
// Prettier: globs only — skip nested `.(cursor|claude)/**` and symlink names (see `.shared/`).
'!(.(cursor|claude))/**': ['pnpm format:files'],
'.(cursor|claude)/!(agents|commands|rules|skills)': ['pnpm format:files'],
'**/*.{ts,tsx,js,cjs,mjs}': ['pnpm lint:fix'],
'frontend/**/*.{ts,tsx}': [() => 'pnpm --filter @chainlit/app type-check'],
'libs/react-client/**/*.{ts,tsx}': [
() => 'pnpm --filter @chainlit/react-client type-check'
],
// TODO: Re-enable copilot type-check after fixing cross-project path alias mismatch.
// See docs/research/copilot-type-checking.md for analysis and proposed solutions.
// 'libs/copilot/**/*.{ts,tsx}': [
// () => 'pnpm --filter @chainlit/copilot type-check'
// ],
'backend/**/*.py': [
'uv run scripts/lint.py --fix',
'uv run scripts/format.py',
() => 'uv run scripts/type_check.py'
],
'.github/workflows/**': ['uv run actionlint']
};