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
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ jobs:
- name: Run type checking
run: |
cd frontend
echo "Skipping TypeScript type checking for now - will fix type issues in a separate PR"
# npx tsc --noEmit
npx tsc --noEmit

- name: Run tests
run: |
Expand Down Expand Up @@ -137,8 +136,7 @@ jobs:
- name: Run npm audit
run: |
cd frontend
echo "Skipping npm audit for now - will address security issues in a separate PR"
# npm audit --audit-level=moderate
npm audit --audit-level=moderate

dependency-check:
runs-on: ubuntu-latest
Expand Down
11 changes: 9 additions & 2 deletions frontend/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import js from '@eslint/js'
import typescript from '@typescript-eslint/eslint-plugin'
import typescriptParser from '@typescript-eslint/parser'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'

export default [
js.configs.recommended,
Expand Down Expand Up @@ -28,11 +30,16 @@ export default [
}
},
plugins: {
'@typescript-eslint': typescript
'@typescript-eslint': typescript,
'react-hooks': reactHooks,
'react-refresh': reactRefresh
},
rules: {
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'warn'
'@typescript-eslint/no-unused-vars': 'warn',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }]
}
},
{
Expand Down
117 changes: 0 additions & 117 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"axios": "^1.13.2",
"react": "^19.2.5",
"react-dom": "^19.2.5",
"react-router-dom": "^7.14.2",
"tailwindcss": "^4.1.17"
},
"devDependencies": {
Expand All @@ -31,7 +30,6 @@
"@typescript-eslint/parser": "^8.59.1",
"@vitejs/plugin-react": "^6.0.1",
"@vitest/coverage-v8": "^4.0.10",
"autoprefixer": "^10.4.16",
"eslint": "^10.2.1",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-refresh": "^0.5.2",
Expand Down
1 change: 0 additions & 1 deletion frontend/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export default {
plugins: {
'@tailwindcss/postcss': {},
autoprefixer: {},
},
}
10 changes: 5 additions & 5 deletions frontend/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import App from './App.tsx'
import './index.css'

ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
createRoot(document.getElementById('root')!).render(
<StrictMode>
<App />
</React.StrictMode>,
</StrictMode>,
)
2 changes: 1 addition & 1 deletion frontend/src/services/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type {
ScriptureSearch
} from '../types/scripture';

const API_BASE_URL = (import.meta as any).env?.VITE_API_URL || 'http://localhost:8000';
const API_BASE_URL = import.meta.env.VITE_API_URL || 'http://localhost:8000';

const api = axios.create({
baseURL: API_BASE_URL,
Expand Down
8 changes: 8 additions & 0 deletions frontend/src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
/// <reference types="vite/client" />

interface ImportMetaEnv {
readonly VITE_API_URL: string
}

interface ImportMeta {
readonly env: ImportMetaEnv
}
9 changes: 0 additions & 9 deletions frontend/vite-env.d.ts

This file was deleted.

Loading