Remove ESLint configuration and related dependencies from frontend project

- Deleted eslint.config.js file to streamline project setup.
- Removed ESLint and related packages from package.json to simplify development environment.
This commit is contained in:
2025-12-11 02:11:10 -05:00
parent 5b3d18a5b3
commit 4911b5d125
4 changed files with 72 additions and 25 deletions

42
eslint.config.js Normal file
View File

@@ -0,0 +1,42 @@
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';
// Shared rules for all TypeScript files
const sharedRules = {
'padding-line-between-statements': ['error', {blankLine: 'always', prev: '*', next: 'return'}]
};
export default defineConfig([
globalIgnores(['**/dist', '**/node_modules']),
// Backend API - TypeScript files
{
files: ['backend-api/**/*.ts'],
extends: [js.configs.recommended, tseslint.configs.recommended],
languageOptions: {
ecmaVersion: 2020,
globals: globals.node
},
rules: sharedRules
},
// Frontend Web - TypeScript/React files
{
files: ['frontend-web/**/*.{ts,tsx}'],
extends: [
js.configs.recommended,
tseslint.configs.recommended,
reactHooks.configs.flat.recommended,
reactRefresh.configs.vite
],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser
},
rules: sharedRules
}
]);

View File

@@ -1,18 +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';
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: {
ecmaVersion: 2020,
globals: globals.browser
}
}
]);

View File

@@ -6,7 +6,6 @@
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "tsc -b && vite build", "build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview" "preview": "vite preview"
}, },
"dependencies": { "dependencies": {
@@ -33,22 +32,16 @@
"tailwind-merge": "^3.4.0" "tailwind-merge": "^3.4.0"
}, },
"devDependencies": { "devDependencies": {
"@eslint/js": "^9.39.1",
"@tailwindcss/vite": "^4.1.17", "@tailwindcss/vite": "^4.1.17",
"@types/node": "^24.10.1", "@types/node": "^24.10.1",
"@types/react": "^19.2.5", "@types/react": "^19.2.5",
"@types/react-dom": "^19.2.3", "@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.1", "@vitejs/plugin-react": "^5.1.1",
"babel-plugin-react-compiler": "^1.0.0", "babel-plugin-react-compiler": "^1.0.0",
"eslint": "^9.39.1",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.4.24",
"globals": "^16.5.0",
"prettier": "^3.7.4", "prettier": "^3.7.4",
"tailwindcss": "^4.1.17", "tailwindcss": "^4.1.17",
"tw-animate-css": "^1.4.0", "tw-animate-css": "^1.4.0",
"typescript": "~5.9.3", "typescript": "~5.9.3",
"typescript-eslint": "^8.46.4",
"vite": "^7.2.4" "vite": "^7.2.4"
} }
} }

30
package.json Normal file
View File

@@ -0,0 +1,30 @@
{
"name": "personal-finances",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "concurrently 'cd frontend-web && bun run dev' 'cd backend-api && bun run dev'",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
},
"repository": {
"type": "git",
"url": "https://git.techniker.me/techniker-me/personal-finance.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"type": "module",
"dependencies": {
"concurrently": "^9.2.1"
},
"devDependencies": {
"@eslint/js": "^9.39.1",
"eslint": "^9.39.1",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.4.24",
"globals": "^16.5.0",
"typescript-eslint": "^8.46.4"
}
}