import js from "@eslint/js"; import pluginQuery from "@tanstack/eslint-plugin-query"; import reactHooks from "eslint-plugin-react-hooks"; import reactRefresh from "eslint-plugin-react-refresh"; import globals from "globals"; import tseslint from "typescript-eslint"; export default tseslint.config( { ignores: ["dist"] }, { extends: [ js.configs.recommended, reactHooks.configs["recommended-latest"], ...tseslint.configs.recommended, ...pluginQuery.configs["flat/recommended"], ], files: ["**/*.{ts,tsx}"], languageOptions: { ecmaVersion: 2020, globals: globals.browser, }, plugins: { "react-refresh": reactRefresh, }, rules: { "react-refresh/only-export-components": [ "warn", { allowConstantExport: true }, ], }, } );