22 lines
776 B
JavaScript
22 lines
776 B
JavaScript
import js from "@eslint/js";
|
|
import globals from "globals";
|
|
import tseslint from "typescript-eslint";
|
|
import reactHooks from "eslint-plugin-react-hooks";
|
|
import reactRefresh from "eslint-plugin-react-refresh";
|
|
|
|
export default tseslint.config(
|
|
{ ignores: ["**/dist/**", "**/coverage/**", "workspace/sessions/**"] },
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
files: ["**/*.{ts,tsx}"],
|
|
languageOptions: { globals: { ...globals.node, ...globals.browser } },
|
|
plugins: { "react-hooks": reactHooks, "react-refresh": reactRefresh },
|
|
rules: {
|
|
...reactHooks.configs.recommended.rules,
|
|
"@typescript-eslint/no-explicit-any": "error",
|
|
"react-refresh/only-export-components": ["warn", { "allowConstantExport": true }]
|
|
}
|
|
}
|
|
);
|