From 4ea1f8eee6d03d17de845d1f2f3595b9bb647cdb Mon Sep 17 00:00:00 2001 From: daviddprtma Date: Tue, 23 Jun 2026 09:01:21 +0700 Subject: [PATCH] disable typescript-eslint/no-explicit-any done --- eslint.config.js | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index f7ed7f0..3258291 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,35 +1,36 @@ -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'; +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"; export default tseslint.config( { ignores: [ - 'dist', - 'src/components/ui/*', - 'src/hooks/use-toast.ts', - 'src/hooks/use-mobile.tsx', + "dist", + "src/components/ui/*", + "src/hooks/use-toast.ts", + "src/hooks/use-mobile.tsx", ], }, { extends: [js.configs.recommended, ...tseslint.configs.recommended], - files: ['**/*.{ts,tsx}'], + files: ["**/*.{ts,tsx}"], languageOptions: { ecmaVersion: 2020, globals: globals.browser, }, plugins: { - 'react-hooks': reactHooks, - 'react-refresh': reactRefresh, + "react-hooks": reactHooks, + "react-refresh": reactRefresh, }, rules: { ...reactHooks.configs.recommended.rules, - 'react-refresh/only-export-components': [ - 'warn', + "react-refresh/only-export-components": [ + "warn", { allowConstantExport: true }, ], + "@typescript-eslint/no-explicit-any": "off", }, - } + }, );