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
}
]);