Download web/eslint.config.js from EnergyVenom/patchwise-agent-studio: direct link, hf CLI and curl.
- Browser
- Download file 1.24 kB
-
https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/web/eslint.config.js
- Command line
-
hf download hf://spaces/EnergyVenom/patchwise-agent-studio/web/eslint.config.js
-
curl -L -o eslint.config.js https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/web/eslint.config.js
1.24 kB
| 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 tseslint.config( | |
| { ignores: ['dist', 'node_modules', 'src/api/schema.d.ts', 'test-results', 'playwright-report'] }, | |
| { | |
| extends: [js.configs.recommended, ...tseslint.configs.strict], | |
| files: ['**/*.{ts,tsx}'], | |
| languageOptions: { ecmaVersion: 2022, globals: { ...globals.browser, ...globals.node } }, | |
| plugins: { 'react-hooks': reactHooks, 'react-refresh': reactRefresh }, | |
| rules: { | |
| ...reactHooks.configs.recommended.rules, | |
| 'react-refresh/only-export-components': 'off', | |
| '@typescript-eslint/no-non-null-assertion': 'off', | |
| }, | |
| }, | |
| { | |
| // beUI components copied from its registry, kept as published so they can be updated from beui.dev; only the | |
| // two style rules their code differs on are relaxed (empty prop interfaces, a guarded measure-every-render effect) | |
| files: ['src/components/ui/**/*.{ts,tsx}'], | |
| rules: { | |
| '@typescript-eslint/no-empty-object-type': 'off', | |
| 'react-hooks/exhaustive-deps': 'off', | |
| }, | |
| }, | |
| ); | |