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 [ { ignores: ['dist/**', 'public/**', 'wwwroot/**', 'htdocs/**', 'cesium/**', 'node_modules/**'] }, { files: ['src/**/*.{ts,tsx}'], languageOptions: { ecmaVersion: 2020, globals: globals.browser, parser: tseslint.parser, parserOptions: { ecmaVersion: 'latest', ecmaFeatures: { jsx: true }, sourceType: 'module', }, }, plugins: { 'react-hooks': reactHooks, 'react-refresh': reactRefresh, '@typescript-eslint': tseslint.plugin, }, rules: { ...js.configs.recommended.rules, ...tseslint.configs.recommended.rules, ...reactHooks.configs.recommended.rules, 'no-unused-vars': "off", 'no-empty': "off", 'no-prototype-builtins': "off", 'no-unreachable': "off", '@typescript-eslint/no-unused-vars': ['error', {argsIgnorePattern: '^_'}], '@typescript-eslint/no-explicit-any': "off", 'react-hooks/rules-of-hooks': "off", 'react-hooks/exhaustive-deps': "off", 'react-refresh/only-export-components': [ 'warn', { allowConstantExport: true }, ], }, }, ]