{"_id":"@dephub/eslint-react","name":"@dephub/eslint-react","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@dephub/eslint-react","type":"module","version":"1.0.0","description":"Opinionated modern ESLint configuration for React projects.","types":"./dist/index.d.ts","main":"./dist/index.js","keywords":["eslint-react","lint","eslint","eslint-config","react","typescript","ts","config","preset","linter","code-quality"],"author":{"name":"Estarlin R","email":"dev@estarlincito.com","url":"https://estarlincito.com"},"license":"MIT","homepage":"https://github.com/dephub-js/eslint-react#readme","repository":{"type":"git","url":"git+https://github.com/dephub-js/eslint-react.git"},"bugs":{"url":"https://github.com/dephub-js/eslint-react/issues"},"publishConfig":{"access":"public"},"dependencies":{"@dephub/eslint-ts":"^1.0.1","@types/eslint":"^9.6.1","eslint":"^10.0.2","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^7.0.1"},"devDependencies":{"@dephub/glob":"^1.0.1","@dephub/path":"^1.0.1","@types/node":"^25.3.2","typescript":"^5.9.3","vite":"^7.3.1","vite-plugin-dts":"^4.5.4"},"scripts":{"release":"pnpm publish","check-types":"tsc --noEmit","lint":"eslint . --fix --max-warnings 0","clean":"rm -rf dist","build":"vite build","dev":"vite build -w"},"_id":"@dephub/eslint-react@1.0.0","_integrity":"sha512-AisjjJQK++HkrYWluEmJXb4sycn7OxRmNYuZ1+KiIefq+UlnYRzo+tIZCl05h2X4qz+CcqsN1fOqaPh5TksJ2w==","_resolved":"/tmp/8e850d96269d2db29f53bfe76b58c0bb/dephub-eslint-react-1.0.0.tgz","_from":"file:dephub-eslint-react-1.0.0.tgz","_nodeVersion":"20.20.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-AisjjJQK++HkrYWluEmJXb4sycn7OxRmNYuZ1+KiIefq+UlnYRzo+tIZCl05h2X4qz+CcqsN1fOqaPh5TksJ2w==","shasum":"79ab2a14bd03fa20aeb3d9812d409afbb1fed71a","tarball":"https://registry.npmjs.org/@dephub/eslint-react/-/eslint-react-1.0.0.tgz","fileCount":7,"unpackedSize":5801,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@dephub%2feslint-react@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCiaJ0faK+EhiJxCQgafiJ0g3OoKeFEfB5QD86yyojXPwIhAJZC9J4E9euDyDbrTeHutaSfyjiJGDfuLAi2G5qBqOG1"}]},"_npmUser":{"name":"estarlincito","email":"estarlincito@icloud.com"},"directories":{},"maintainers":[{"name":"estarlincito","email":"estarlincito@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eslint-react_1.0.0_1772303891954_0.04959559763123789"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-28T18:38:11.839Z","1.0.0":"2026-02-28T18:38:12.097Z","modified":"2026-02-28T18:38:12.526Z"},"maintainers":[{"name":"estarlincito","email":"estarlincito@icloud.com"}],"description":"Opinionated modern ESLint configuration for React projects.","homepage":"https://github.com/dephub-js/eslint-react#readme","keywords":["eslint-react","lint","eslint","eslint-config","react","typescript","ts","config","preset","linter","code-quality"],"repository":{"type":"git","url":"git+https://github.com/dephub-js/eslint-react.git"},"author":{"name":"Estarlin R","email":"dev@estarlincito.com","url":"https://estarlincito.com"},"bugs":{"url":"https://github.com/dephub-js/eslint-react/issues"},"license":"MIT","readme":"# @dephub/eslint-react ⚛️\n\n> Opinionated modern ESLint configuration for React projects, built on top of `@dephub/eslint-ts`.\n\n[![NPM version](https://img.shields.io/npm/v/@dephub/eslint-react.svg?style=flat)](https://npmjs.org/package/@dephub/eslint-react)\n[![ESM-only](https://img.shields.io/badge/ESM-only-brightgreen?style=flat)](https://nodejs.org/)\n\n---\n\n## Features ✨\n\n- ⚛️ Extends `@dephub/eslint-ts` for full TS + React support\n- 🧠 React and React Hooks best practices\n- 🟦 Strict TypeScript rules included\n- 🔀 Import sorting and unused import handling\n- 🧹 Prettier-compatible formatting rules\n\n---\n\n## Installation 📦\n\n- npm: `npm install -D eslint @dephub/eslint-react`\n- pnpm: `pnpm add -D eslint @dephub/eslint-react`\n- yarn: `yarn add -D eslint @dephub/eslint-react`\n- bun: `bun add -D eslint @dephub/eslint-react`\n\n> Since this config extends `@dephub/eslint-ts`, make sure your project is configured for TypeScript.\n\n---\n\n## Usage 🎯\n\n### API 🧩\n\nCreate an `eslint.config.mjs` file:\n\n```ts id=\"reactcfg\"\nimport { defineConfig } from 'eslint/config';\nimport reactConfig from '@dephub/eslint-react';\n\nexport default defineConfig(reactConfig);\n```\n\nYou don’t need to manually include `@dephub/eslint-ts` — it’s already extended internally.\n\n### Extending the configuration\n\n```ts id=\"reactext\"\nimport { defineConfig } from 'eslint/config';\nimport reactConfig from '@dephub/eslint-react';\n\nexport default defineConfig([\n  ...reactConfig,\n  {\n    rules: {\n      'react/react-in-jsx-scope': 'off',\n    },\n  },\n]);\n```\n\nThen run ESLint normally:\n\n```bash id=\"reactrun\"\nnpx eslint .\n```\n\n---\n\n## License 📄\n\nMIT License – see [LICENSE](LICENSE) for details.\n\n**Author:** Estarlin R ([estarlincito.com](https://estarlincito.com))\n","readmeFilename":"README.md","_rev":"1-590520cb59370f485017d0df54b0138d"}