4213e70697
feat: add state management for recording in RecordeReplayPage component refactor: remove bridge and storage services as they are no longer needed chore: update tsconfig.json for improved type checking and module resolution fix: update downloadHtml function to use eventWithTime type and improve formatting fix: add error logging in formatWithZone function for better debugging
16 lines
552 B
JavaScript
16 lines
552 B
JavaScript
export default {
|
|
// 对于代码文件:
|
|
'*.{ts,tsx,js,jsx}': [
|
|
// 1. ESLint: 依然检查具体文件,拦截未使用变量
|
|
'eslint --fix --max-warnings=0 --no-warn-ignored',
|
|
|
|
// 2. TypeScript: 使用函数形式
|
|
// 关键!这就告诉 lint-staged:“不要把文件名传给 tsc,直接运行这个命令就好”
|
|
// 这样 tsc 就会去读取 tsconfig.json,并正确排除 eslint.config.ts
|
|
() => 'tsc --noEmit --skipLibCheck',
|
|
],
|
|
|
|
// 对于其他文件:
|
|
'*.{json,css,scss,md}': ['prettier --write'],
|
|
};
|