From 8c30cab10b505c1247ae187c87df2dd12718498d Mon Sep 17 00:00:00 2001 From: arsam Date: Fri, 18 Sep 2026 23:16:25 +0330 Subject: [PATCH] Import project configuration: eslint.config.js Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality. --- eslint.config.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 eslint.config.js diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..ef614d2 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,22 @@ +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 { defineConfig, globalIgnores } from 'eslint/config' + +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{ts,tsx}'], + extends: [ + js.configs.recommended, + tseslint.configs.recommended, + reactHooks.configs.flat.recommended, + reactRefresh.configs.vite, + ], + languageOptions: { + globals: globals.browser, + }, + }, +])