import globals from "globals" import pluginJs from "@eslint/js" import tseslint from "typescript-eslint" import pluginReact from "eslint-plugin-react" export default [ { files: ["./src/**/*.{js,mjs,cjs,ts,jsx,tsx}"] }, { plugins: { react: pluginReact } }, { languageOptions: { parserOptions: { ecmaFeatures: { jsx: true, }, }, globals: globals.browser, }, }, pluginJs.configs.recommended, ...tseslint.configs.recommended, pluginReact.configs.flat.recommended, { rules: { "react/react-in-jsx-scope": "off", "react/no-unknown-property": "off", "@typescript-eslint/no-unused-vars": [ "error", { args: "all", argsIgnorePattern: "^_", caughtErrors: "all", caughtErrorsIgnorePattern: "^_", destructuredArrayIgnorePattern: "^_", varsIgnorePattern: "^_", ignoreRestSiblings: true, }, ], }, }, ]