From 17d026568ab323ac01885509147d148e87357591 Mon Sep 17 00:00:00 2001 From: Astrian Zheng Date: Sun, 23 Feb 2025 10:09:48 +1100 Subject: [PATCH] refactor: remove ESLint configuration and related dependencies from package.json --- eslint.config.js | 28 ---------------------------- package.json | 3 --- 2 files changed, 31 deletions(-) delete mode 100644 eslint.config.js diff --git a/eslint.config.js b/eslint.config.js deleted file mode 100644 index 092408a..0000000 --- a/eslint.config.js +++ /dev/null @@ -1,28 +0,0 @@ -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'] }, - { - extends: [js.configs.recommended, ...tseslint.configs.recommended], - files: ['**/*.{ts,tsx}'], - languageOptions: { - ecmaVersion: 2020, - globals: globals.browser, - }, - plugins: { - 'react-hooks': reactHooks, - 'react-refresh': reactRefresh, - }, - rules: { - ...reactHooks.configs.recommended.rules, - 'react-refresh/only-export-components': [ - 'warn', - { allowConstantExport: true }, - ], - }, - }, -) diff --git a/package.json b/package.json index 7ec9e0c..03451a6 100644 --- a/package.json +++ b/package.json @@ -14,9 +14,6 @@ "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^1.3.2", - "eslint": "^9.19.0", - "eslint-plugin-react-hooks": "^5.0.0", - "eslint-plugin-react-refresh": "^0.4.18", "globals": "^15.14.0", "sass-embedded": "^1.85.0", "typescript": "~5.7.2",