Download react-query/packages/react-query-devtools/eslint.config.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 595 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/packages/react-query-devtools/eslint.config.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/packages/react-query-devtools/eslint.config.js
-
curl -L -o eslint.config.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/packages/react-query-devtools/eslint.config.js
595 Bytes
| // @ts-check | |
| import pluginReact from '@eslint-react/eslint-plugin' | |
| import * as reactHooks from 'eslint-plugin-react-hooks' | |
| import rootConfig from './root.eslint.config.js' | |
| export default [ | |
| ...rootConfig, | |
| reactHooks.configs.recommended, | |
| { | |
| files: ['**/*.{ts,tsx}'], | |
| ...pluginReact.configs.recommended, | |
| rules: { | |
| '@eslint-react/no-context-provider': 'off', // We need to be React 18 compatible | |
| }, | |
| }, | |
| { | |
| rules: { | |
| 'react-hooks/exhaustive-deps': 'error', | |
| 'react-hooks/rules-of-hooks': 'error', | |
| 'react-hooks/react-compiler': 'error', | |
| }, | |
| }, | |
| ] | |