Files

32 lines
745 B
JavaScript
Raw Permalink Normal View History

2026-05-24 14:44:42 +08:00
import js from "@eslint/js";
import reactHooks from "eslint-plugin-react-hooks";
import globals from "globals";
import tseslint from "typescript-eslint";
export default tseslint.config(
{
ignores: ["dist", "coverage", "node_modules", "*.config.js"],
linterOptions: {
reportUnusedDisableDirectives: "off",
},
},
js.configs.recommended,
...tseslint.configs.recommended,
{
files: ["webui/src/**/*.{ts,tsx}", "nanobot/channels/*/webui/**/*.{ts,tsx}"],
2026-05-24 14:44:42 +08:00
languageOptions: {
ecmaVersion: 2020,
globals: {
...globals.browser,
...globals.es2020,
},
},
plugins: {
"react-hooks": reactHooks,
},
rules: {
"react-hooks/rules-of-hooks": "error",
},
},
);