waveterm/eslint.config.js
Copilot ecccad6ea1
TabBar full preview + much more FE mocking via WaveEnv to enable it (#3028)
Large PR that extends WaveEnv mocking to fully cover the (complicated) TabBar implementation.  Also includes a full preview of the tab bar in the preview server with lots of controls to simulate different scenarios.

As a result of this mocking, also fixed a bunch of dependencies, and layout errors, random bugs, and visual UX bugs in the tab bar, making it more robust.

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: sawka <[email protected]>
Co-authored-by: sawka <[email protected]>
2026-03-11 13:54:12 -07:00

98 lines
2.3 KiB
JavaScript

// @ts-check
import eslint from "@eslint/js";
import eslintConfigPrettier from "eslint-config-prettier";
import globals from "globals";
import path from "node:path";
import { fileURLToPath } from "node:url";
import tseslint from "typescript-eslint";
const tsconfigRootDir = path.dirname(fileURLToPath(new URL(import.meta.url)));
export default [
{
languageOptions: {
parserOptions: {
tsconfigRootDir,
},
},
},
{
ignores: [
"**/node_modules/**",
"**/dist/**",
"**/build/**",
"**/make/**",
"tsunami/frontend/scaffold/**",
"docs/.docusaurus/**",
],
},
{
files: ["frontend/**/*.{ts,tsx}", "emain/**/*.{ts,tsx}"],
languageOptions: {
parserOptions: {
tsconfigRootDir,
project: "./tsconfig.json",
},
},
},
{
files: ["docs/**/*.{ts,tsx}"],
languageOptions: {
parserOptions: { tsconfigRootDir, project: "./docs/tsconfig.json" },
},
},
eslint.configs.recommended,
...tseslint.configs.recommended,
{
rules: {
"@typescript-eslint/no-explicit-any": "off",
},
},
{
files: ["emain/**/*.ts", "electron.vite.config.ts", "**/*.cjs", "eslint.config.js", "docs/babel.config.js"],
languageOptions: {
globals: {
...globals.node,
},
},
},
{
files: ["**/*.js", "**/*.cjs"],
rules: {
"@typescript-eslint/no-require-imports": "off",
},
},
{
rules: {
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^(_[a-zA-Z0-9_]*|e|get)$",
varsIgnorePattern: "^(_[a-zA-Z0-9_]*|dlog|e)$",
caughtErrorsIgnorePattern: "^(_[a-zA-Z0-9_]*|e)$",
},
],
"prefer-const": "warn",
"no-empty": "warn",
},
},
{
files: ["frontend/app/store/services.ts"],
rules: {
"@typescript-eslint/no-unused-vars": "off",
"prefer-rest-params": "off",
},
},
eslintConfigPrettier,
];