import globals from "globals"; import tseslintPkg from "typescript-eslint"; import pluginVue from "eslint-plugin-vue"; const tseslint = tseslintPkg; const tsParser = tseslintPkg.parser; export default [ { languageOptions: { globals: globals.browser } }, ...tseslint.configs.recommended, ...pluginVue.configs["flat/essential"], { rules: { // `_`-prefixed unused parameters (.catch((_) => {}), etc.) are // intentional; everything else stays strict. "@typescript-eslint/no-unused-vars": [ "error", { argsIgnorePattern: "^_" }, ], }, }, { // Vue SFC: the flat presets above do not attach the TypeScript parser to // .vue files, so