turash/bugulma/frontend/eslint.config.js
Damir Mukimov 6347f42e20
Consolidate repositories: Remove nested frontend .git and merge into main repository
- Remove nested git repository from bugulma/frontend/.git
- Add all frontend files to main repository tracking
- Convert from separate frontend/backend repos to unified monorepo
- Preserve all frontend code and development history as tracked files
- Eliminate nested repository complexity for simpler development workflow

This creates a proper monorepo structure with frontend and backend
coexisting in the same repository for easier development and deployment.
2025-11-25 06:02:57 +01:00

47 lines
1.2 KiB
JavaScript

import globals from 'globals';
import tseslint from 'typescript-eslint';
import pluginReact from 'eslint-plugin-react';
import pluginReactHooks from 'eslint-plugin-react-hooks';
import pluginPrettier from 'eslint-plugin-prettier';
import eslintConfigPrettier from 'eslint-config-prettier';
export default [
{
ignores: ['dist', 'node_modules'],
},
{
files: ['**/*.{js,jsx,ts,tsx}'],
plugins: {
react: pluginReact,
'react-hooks': pluginReactHooks,
prettier: pluginPrettier,
},
languageOptions: {
globals: {
...globals.browser,
...globals.es2021,
},
parser: tseslint.parser,
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
},
rules: {
...pluginReact.configs.recommended.rules,
...pluginReactHooks.configs.recommended.rules,
...eslintConfigPrettier.rules,
'prettier/prettier': 'error',
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off', // Disable prop-types validation since we use TypeScript interfaces
},
settings: {
react: {
version: 'detect',
},
},
},
...tseslint.configs.recommended,
];