Files
Termix/eslint.config.js
T

32 lines
932 B
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";
import tseslint from "typescript-eslint";
import { globalIgnores } from "eslint/config";
2025-08-07 02:20:27 -05:00
export default tseslint.config([
+5
2026-03-08 18:02:14 -05:00
globalIgnores(["dist", "release", "Mobile"]),
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,
2025-09-12 14:42:00 -05:00
reactHooks.configs["recommended-latest"],
2025-08-07 02:20:27 -05:00
reactRefresh.configs.vite,
],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
+5
2026-03-08 18:02:14 -05:00
rules: {
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-expressions": "warn",
"no-empty": "warn",
"no-control-regex": "off",
"react-refresh/only-export-components": "warn",
},
2025-08-07 02:20:27 -05:00
},
2025-09-12 14:42:00 -05:00
]);