Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
- name: Run unit tests
run: npm test

- name: Lint
run: npm run lint

- name: Type-check
run: npm run typecheck

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Repository / 리포지토리: <https://github.com/microsoft/CopilotWatchTower>

### Quick start (Electron)

Requirements: Node.js 20+ (bundles Electron 42 / Node 24), Windows.
Requirements: Node.js 22+ (`node:sqlite` is required at build/test time; bundles Electron 42 / Node 24), Windows.

```powershell
# Install dependencies (first time only)
Expand Down Expand Up @@ -113,7 +113,7 @@ copilot-watchtower

### 빠른 시작 (Electron)

요구사항: Node.js 20+ (Electron 42 / Node 24 번들), Windows.
요구사항: Node.js 22+ (빌드/테스트에 `node:sqlite` 필요, Electron 42 / Node 24 번들), Windows.

```powershell
# 의존성 설치 (최초 1회)
Expand Down
43 changes: 43 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import js from '@eslint/js'
import tseslint from 'typescript-eslint'
import reactHooks from 'eslint-plugin-react-hooks'
import globals from 'globals'

export default tseslint.config(
{ ignores: ['out/**', 'dist/**', 'node_modules/**', 'legacy/**', '*.config.js'] },
js.configs.recommended,
...tseslint.configs.recommended,
{
files: ['**/*.{ts,tsx}'],
languageOptions: {
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' }
},
rules: {
// Unused values are usually a leftover from an incomplete refactor — the
// dead ko-KR number formatters this config was added to catch, for example.
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
'@typescript-eslint/no-explicit-any': 'error',
'no-console': ['warn', { allow: ['error'] }],
eqeqeq: ['error', 'smart']
}
},
{
files: ['src/main/**/*.ts', 'src/preload/**/*.ts'],
languageOptions: { globals: { ...globals.node } }
},
{
files: ['src/renderer/**/*.{ts,tsx}'],
languageOptions: { globals: { ...globals.browser } },
plugins: { 'react-hooks': reactHooks },
rules: {
...reactHooks.configs.recommended.rules,
// Stale-closure and missing-dependency bugs are the single most common
// class of defect in this renderer; treat them as errors, not hints.
'react-hooks/exhaustive-deps': 'error'
}
},
{
files: ['tests/**/*.ts', '**/*.test.ts'],
languageOptions: { globals: { ...globals.node } }
}
)
Loading
Loading