update frontend lib : eslint + typescript - #1815

This commit is contained in:
Laurent GAY
2025-10-23 11:46:17 +02:00
committed by setop
parent bbf78fa198
commit c3e7f03f54
24 changed files with 1939 additions and 1339 deletions

24
eslint.config.js Normal file
View File

@@ -0,0 +1,24 @@
import js from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";
import pluginVue from "eslint-plugin-vue";
import { defineConfig } from "eslint/config";
export default defineConfig([
{
files: ["**/*.{js,mjs,cjs,ts,mts,cts,vue}"],
plugins: { js },
extends: ["js/recommended"],
languageOptions: { globals: globals.browser },
},
{
files: ["**/*.js"],
languageOptions: { sourceType: "commonjs" },
},
tseslint.configs.recommended,
pluginVue.configs["flat/essential"],
{
files: ["**/*.vue"],
languageOptions: { parserOptions: { parser: tseslint.parser } },
},
]);