Files
Termix/eslint.config.mjs
T

50 lines
1.5 KiB
JavaScript
Raw Normal View History

2025-09-12 14:42:00 -05:00
import js from "@eslint/js";
import globals from "globals";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
2026-05-06 15:12:07 -05:00
import unusedImports from "eslint-plugin-unused-imports";
2025-09-12 14:42:00 -05:00
import tseslint from "typescript-eslint";
import { globalIgnores } from "eslint/config";
2025-08-07 02:20:27 -05:00
export default tseslint.config([
2026-06-04 15:16:53 -04:00
globalIgnores(["dist", "release", "Mobile", "src/mcp-server/node_modules"]),
2025-08-07 02:20:27 -05:00
{
2025-09-12 14:42:00 -05:00
files: ["**/*.{ts,tsx}"],
2025-08-07 02:20:27 -05:00
extends: [
js.configs.recommended,
tseslint.configs.recommended,
reactRefresh.configs.vite,
],
2026-05-06 15:12:07 -05:00
plugins: {
"react-hooks": reactHooks,
"unused-imports": unusedImports,
},
2025-08-07 02:20:27 -05:00
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
+5
2026-03-08 18:02:14 -05:00
rules: {
2026-05-06 15:12:07 -05:00
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
vars: "all",
varsIgnorePattern: "^_",
args: "after-used",
argsIgnorePattern: "^_",
},
],
"@typescript-eslint/no-unused-vars": "off",
+5
2026-03-08 18:02:14 -05:00
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-expressions": "warn",
"no-empty": "warn",
"no-control-regex": "off",
2026-05-06 15:12:07 -05:00
"no-useless-assignment": "off",
"preserve-caught-error": "off",
"react-hooks/exhaustive-deps": "warn",
"react-hooks/rules-of-hooks": "error",
+5
2026-03-08 18:02:14 -05:00
"react-refresh/only-export-components": "warn",
},
2025-08-07 02:20:27 -05:00
},
2025-09-12 14:42:00 -05:00
]);