Files
agent-chat-ui/eslint.config.js

31 lines
858 B
JavaScript
Raw Normal View History

2025-02-27 14:08:24 -08: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";
2025-02-18 19:35:46 +01:00
export default tseslint.config(
2025-02-27 14:08:24 -08:00
{ ignores: ["dist"] },
2025-02-18 19:35:46 +01:00
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
2025-02-27 14:08:24 -08:00
files: ["**/*.{ts,tsx}"],
2025-02-18 19:35:46 +01:00
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
2025-02-27 14:08:24 -08:00
"react-hooks": reactHooks,
"react-refresh": reactRefresh,
2025-02-18 19:35:46 +01:00
},
rules: {
...reactHooks.configs.recommended.rules,
2025-03-11 13:38:25 -07:00
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-unused-vars": ["warn", { args: "none" }],
2025-02-27 14:08:24 -08:00
"react-refresh/only-export-components": [
"warn",
2025-02-18 19:35:46 +01:00
{ allowConstantExport: true },
],
},
},
2025-02-27 14:08:24 -08:00
);