canina/frontend/admin-panel/eslint.config.js
parsa aghaei 2c452215c3
All checks were successful
Deploy Canina / deploy (push) Successful in 1m41s
feat: resolve doctors query error, add FAQ, testimonials, blog preview, and full menu management
2026-08-19 17:20:01 +03:30

30 lines
906 B
JavaScript

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,
},
rules: {
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
'react-hooks/set-state-in-effect': 'off',
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
},
},
])