Tauri v2 + React 19 desktop app. AI summary with pause/resume and checkpoint resume, book-chat with RAG and chat sessions, unified data persistence, mind-map download/export, and a Tauri build pipeline. Co-Authored-By: Claude Code <noreply@anthropic.com>
40 lines
957 B
JavaScript
40 lines
957 B
JavaScript
import js from '@eslint/js'
|
|
import globals from 'globals'
|
|
import reactHooks from 'eslint-plugin-react-hooks'
|
|
import reactRefresh from 'eslint-plugin-react-refresh'
|
|
import tseslint from 'typescript-eslint'
|
|
|
|
export default tseslint.config(
|
|
{
|
|
ignores: ['dist', 'src-tauri'],
|
|
},
|
|
{
|
|
files: ['scripts/**/*.mjs'],
|
|
languageOptions: {
|
|
globals: globals.node,
|
|
},
|
|
},
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
files: ['**/*.{ts,tsx}'],
|
|
languageOptions: {
|
|
ecmaVersion: 2020,
|
|
globals: globals.browser,
|
|
},
|
|
plugins: {
|
|
'react-hooks': reactHooks,
|
|
'react-refresh': reactRefresh,
|
|
},
|
|
rules: {
|
|
...reactHooks.configs.recommended.rules,
|
|
'react-refresh/only-export-components': [
|
|
'warn',
|
|
{ allowConstantExport: true },
|
|
],
|
|
'@typescript-eslint/no-unused-expressions': 'off',
|
|
...reactHooks.configs['recommended-latest'].rules,
|
|
},
|
|
}
|
|
)
|