{"_id":"@arshakgrigoryan/use-hook","name":"@arshakgrigoryan/use-hook","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@arshakgrigoryan/use-hook","version":"1.0.0","main":"dist/use-hook.umd.js","module":"dist/use-hook.es.js","types":"dist/index.d.ts","exports":{".":{"import":"./dist/use-hook.es.js","require":"./dist/use-hook.umd.js","types":"./dist/index.d.ts"}},"scripts":{"dev":"vite","build":"tsc -b && vite build","lint":"eslint .","preview":"vite preview"},"peerDependencies":{"react":"^19.1.1","react-dom":"^19.1.1"},"devDependencies":{"@eslint/js":"^9.32.0","@types/react":"^19.1.9","@types/react-dom":"^19.1.7","@vitejs/plugin-react":"^4.7.0","eslint":"^9.32.0","eslint-plugin-react-hooks":"^5.2.0","eslint-plugin-react-refresh":"^0.4.20","globals":"^16.3.0","typescript":"~5.8.3","typescript-eslint":"^8.39.0","vite":"^7.1.0","vite-plugin-dts":"^4.5.4"},"_id":"@arshakgrigoryan/use-hook@1.0.0","gitHead":"be01e53d9c9fe2b2703570655a51b25d7ad12715","description":"This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.","_nodeVersion":"20.19.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-W5nxQTXPaAR2PsdI0DjOs81SkwI6Js56jhQ6++BAC+f4RfEGqarFDYERXmZ/5V1nJ2A6zqxHUP0224m85tmGwQ==","shasum":"563b72ea2e4b1ff063ec61ce549dfd4cf34d735b","tarball":"https://registry.npmjs.org/@arshakgrigoryan/use-hook/-/use-hook-1.0.0.tgz","fileCount":16,"unpackedSize":10351,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGDlxKcrldWDh3TfX+tr45eJbq86QMhoffOWIYnevyfbAiEAoA6Ud90ttX3j40fRrUCB9lowvHJlidf5V6fvpt0/yUY="}]},"_npmUser":{"name":"arshakgrigoryan","email":"arshak.code@gmail.com"},"directories":{},"maintainers":[{"name":"arshakgrigoryan","email":"arshak.code@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/use-hook_1.0.0_1754600165340_0.255543048176305"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-07T20:56:05.232Z","1.0.0":"2025-08-07T20:56:05.680Z","modified":"2025-08-07T20:56:06.013Z"},"maintainers":[{"name":"arshakgrigoryan","email":"arshak.code@gmail.com"}],"description":"This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.","readme":"# React + TypeScript + Vite\n\nThis template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.\n\nCurrently, two official plugins are available:\n\n- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh\n- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh\n\n## Expanding the ESLint configuration\n\nIf you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:\n\n```js\nexport default tseslint.config([\n  globalIgnores(['dist']),\n  {\n    files: ['**/*.{ts,tsx}'],\n    extends: [\n      // Other configs...\n\n      // Remove tseslint.configs.recommended and replace with this\n      ...tseslint.configs.recommendedTypeChecked,\n      // Alternatively, use this for stricter rules\n      ...tseslint.configs.strictTypeChecked,\n      // Optionally, add this for stylistic rules\n      ...tseslint.configs.stylisticTypeChecked,\n\n      // Other configs...\n    ],\n    languageOptions: {\n      parserOptions: {\n        project: ['./tsconfig.node.json', './tsconfig.app.json'],\n        tsconfigRootDir: import.meta.dirname,\n      },\n      // other options...\n    },\n  },\n])\n```\n\nYou can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:\n\n```js\n// eslint.config.js\nimport reactX from 'eslint-plugin-react-x'\nimport reactDom from 'eslint-plugin-react-dom'\n\nexport default tseslint.config([\n  globalIgnores(['dist']),\n  {\n    files: ['**/*.{ts,tsx}'],\n    extends: [\n      // Other configs...\n      // Enable lint rules for React\n      reactX.configs['recommended-typescript'],\n      // Enable lint rules for React DOM\n      reactDom.configs.recommended,\n    ],\n    languageOptions: {\n      parserOptions: {\n        project: ['./tsconfig.node.json', './tsconfig.app.json'],\n        tsconfigRootDir: import.meta.dirname,\n      },\n      // other options...\n    },\n  },\n])\n```\n","readmeFilename":"README.md","_rev":"1-afe5f92a86c7f280f0e925a0444f2d93"}