Skip to content

Commit 2cd7fee

Browse files
fix(ci): add TypeScript lint, test, and type-check scripts
- Add ESLint configuration with React and TypeScript rules - Add Vitest configuration for testing - Add npm scripts: lint, type-check, test - Add testing dependencies: vitest, @testing-library/react, jsdom - Add basic App test to verify rendering - Fixes TypeScript CI failures in PR #15
1 parent b18186e commit 2cd7fee

File tree

6 files changed

+2928
-298
lines changed

6 files changed

+2928
-298
lines changed

apps/ui/eslint.config.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import js from '@eslint/js'
2+
import globals from 'globals'
3+
import reactHooks from 'eslint-plugin-react-hooks'
4+
import reactRefresh from 'eslint-plugin-react-refresh'
5+
import tseslint from 'typescript-eslint'
6+
7+
export default tseslint.config(
8+
{ ignores: ['dist', 'node_modules', 'src-tauri'] },
9+
{
10+
extends: [js.configs.recommended, ...tseslint.configs.recommended],
11+
files: ['**/*.{ts,tsx}'],
12+
languageOptions: {
13+
ecmaVersion: 2020,
14+
globals: globals.browser,
15+
},
16+
plugins: {
17+
'react-hooks': reactHooks,
18+
'react-refresh': reactRefresh,
19+
},
20+
rules: {
21+
...reactHooks.configs.recommended.rules,
22+
'react-refresh/only-export-components': [
23+
'warn',
24+
{ allowConstantExport: true },
25+
],
26+
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
27+
},
28+
},
29+
)

0 commit comments

Comments
 (0)