M0.4: frontend with Vue 3, Pinia, ESLint, vue-tsc and Vitest
Empty workbench (main area and status bar) themed only through --lt-* tokens. ipc.ts wraps Tauri invoke so engine calls never reject; the app store loads app.about. Type-aware ESLint bans floating promises, any and inline comments. Requires Node 22.12+ for Vite 8. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
acc055c063
commit
50bcc95006
15 changed files with 456 additions and 2 deletions
43
ui/eslint.config.js
Normal file
43
ui/eslint.config.js
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
/**
|
||||
* ESLint flat configuration of the Lutra frontend.
|
||||
*
|
||||
* Type-aware TypeScript rules apply to `.ts` and `.vue` files. Floating and
|
||||
* misused promises are errors so that no rejection goes unhandled, `any`
|
||||
* is an error, and inline comments are banned in favour of TSDoc blocks.
|
||||
*/
|
||||
import js from "@eslint/js";
|
||||
import { defineConfig } from "eslint/config";
|
||||
import pluginVue from "eslint-plugin-vue";
|
||||
import globals from "globals";
|
||||
import tseslint from "typescript-eslint";
|
||||
import vueParser from "vue-eslint-parser";
|
||||
|
||||
export default defineConfig(
|
||||
{ ignores: ["dist/**", "node_modules/**", "coverage/**"] },
|
||||
js.configs.recommended,
|
||||
tseslint.configs.strictTypeChecked,
|
||||
pluginVue.configs["flat/recommended"],
|
||||
{
|
||||
languageOptions: {
|
||||
parser: vueParser,
|
||||
parserOptions: {
|
||||
parser: tseslint.parser,
|
||||
projectService: true,
|
||||
tsconfigRootDir: import.meta.dirname,
|
||||
extraFileExtensions: [".vue"],
|
||||
},
|
||||
globals: { ...globals.browser },
|
||||
},
|
||||
rules: {
|
||||
"@typescript-eslint/no-floating-promises": "error",
|
||||
"@typescript-eslint/no-misused-promises": "error",
|
||||
"@typescript-eslint/no-explicit-any": "error",
|
||||
"no-inline-comments": "error",
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ["**/*.js"],
|
||||
extends: [tseslint.configs.disableTypeChecked],
|
||||
languageOptions: { globals: { ...globals.node } },
|
||||
},
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue