Download next.js/apps/docs/eslint.config.mjs from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 385 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/apps/docs/eslint.config.mjs
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/apps/docs/eslint.config.mjs
-
curl -L -o eslint.config.mjs https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/apps/docs/eslint.config.mjs
385 Bytes
| import { dirname } from 'path' | |
| import { fileURLToPath } from 'url' | |
| import { FlatCompat } from '@eslint/eslintrc' | |
| const __filename = fileURLToPath(import.meta.url) | |
| const __dirname = dirname(__filename) | |
| const compat = new FlatCompat({ | |
| baseDirectory: __dirname, | |
| }) | |
| const eslintConfig = [ | |
| ...compat.extends('next/core-web-vitals', 'next/typescript'), | |
| ] | |
| export default eslintConfig | |