diff --git a/frontend/eslint.config.js b/frontend/eslint.config.js new file mode 100644 index 00000000..cf8147ee --- /dev/null +++ b/frontend/eslint.config.js @@ -0,0 +1,30 @@ +import eslint from '@eslint/js'; +import reactRefresh from 'eslint-plugin-react-refresh'; +import tseslint from 'typescript-eslint'; + +export default [ + eslint.configs.recommended, + ...tseslint.configs.recommended, + { + plugins: { + 'react-refresh': reactRefresh + } + }, + { + rules: { + "@typescript-eslint/no-explicit-any": "error", + 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }], + 'no-loop-func': ['error'], + 'no-console': ['error'], + 'no-restricted-imports': [ + 'error', + { + patterns: ['@mui/*/*/*'] + } + ] + } + }, + { + ignores: ['node_modules', 'dist', 'lib'] + } +];