chore(lint): bring .tsx files into the eslint, lefthook, and jscpd lanes

.tsx sources and specs were invisible to every lint surface: the eslint
flat-config globs, the lefthook staged-file glob, and the jscpd clone
scan all matched *.ts only. Widen the five eslint file groups (source,
test, client-test, sonar, formatting), the pre-commit glob, and the
jscpd format/pattern to cover .tsx.

Existing .tsx files predate these lanes; follow-up commits on this PR
clear the backlog they surface.
This commit is contained in:
imccyu
2026-07-27 21:42:08 +08:00
parent c03c4fdbdd
commit 36e8141145
3 changed files with 29 additions and 8 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
pre-commit:
jobs:
- name: lint (staged)
glob: '*.{ts,mts,cts,mjs}'
glob: '*.{ts,tsx,mts,cts,mjs}'
exclude:
- 'vendor/*/src/**'
run: node_modules/.bin/eslint --fix {staged_files}