{"_id":"@baitangxiaoyu/ts-component","name":"@baitangxiaoyu/ts-component","dist-tags":{"latest":"0.0.0"},"versions":{"0.0.0":{"name":"@baitangxiaoyu/ts-component","version":"0.0.0","type":"module","main":"./dist/cjs/index.js","module":"./dist/esm/index.js","types":"./dist/esm/index.d.ts","unpkg":"./dist/umd/ts-component.umd.cjs","scripts":{"dev":"vite","build":"tsc -b && vite build","lint":"eslint .","preview":"vite preview","build:cjs":"npx tsc -p tsconfig.build.json  --module commonjs --outDir dist/cjs && npm run build:scss -- cjs","build:esm":"npx tsc -p tsconfig.build.json  --module ESNext --outDir dist/esm && npm run build:scss -- esm","build:scss":"node ./scripts/index.js"},"peerDependencies":{"react":"^18.3.1","react-dom":"^18.3.1"},"devDependencies":{"@eslint/js":"^9.9.0","@types/react":"^18.3.3","@types/react-dom":"^18.3.0","@vitejs/plugin-react":"^4.3.1","eslint":"^9.9.0","eslint-plugin-react-hooks":"^5.1.0-rc.0","eslint-plugin-react-refresh":"^0.4.9","globals":"^15.9.0","sass-embedded":"^1.78.0","typescript":"^5.5.3","typescript-eslint":"^8.0.1","vite":"^5.4.1"},"_id":"@baitangxiaoyu/ts-component@0.0.0","description":"This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.","_nodeVersion":"20.15.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-Mqq8uwizfgvH0o5SVl7XL3tdxWWbARSdCmmVkGpEsSKlHjqZeWOdGSMAZ6vG4mPbJzU/0tRsNyOx5RnsINC3Yg==","shasum":"cf374a426aee6a90bb430c6408b085ded9aa0d35","tarball":"https://registry.npmjs.org/@baitangxiaoyu/ts-component/-/ts-component-0.0.0.tgz","fileCount":18,"unpackedSize":259022,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB9PBzuh1ynihWNJppCJAvG6g3J/pUAUklJk18wbf6+yAiBTzMZGLJrELhSdyaOzPP7Rm1wD9KnycZs62jv9+PLFmw=="}]},"_npmUser":{"name":"baitangxiaoyu","email":"1158236291@qq.com"},"directories":{},"maintainers":[{"name":"baitangxiaoyu","email":"1158236291@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-component_0.0.0_1726133428161_0.1437892310858917"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-12T09:30:28.068Z","0.0.0":"2024-09-12T09:30:28.338Z","modified":"2024-09-12T09:30:28.687Z"},"maintainers":[{"name":"baitangxiaoyu","email":"1158236291@qq.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/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh\n- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-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- Configure the top-level `parserOptions` property like this:\n\n```js\nexport default tseslint.config({\n  languageOptions: {\n    // other options...\n    parserOptions: {\n      project: ['./tsconfig.node.json', './tsconfig.app.json'],\n      tsconfigRootDir: import.meta.dirname,\n    },\n  },\n})\n```\n\n- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`\n- Optionally add `...tseslint.configs.stylisticTypeChecked`\n- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:\n\n```js\n// eslint.config.js\nimport react from 'eslint-plugin-react'\n\nexport default tseslint.config({\n  // Set the react version\n  settings: { react: { version: '18.3' } },\n  plugins: {\n    // Add the react plugin\n    react,\n  },\n  rules: {\n    // other rules...\n    // Enable its recommended rules\n    ...react.configs.recommended.rules,\n    ...react.configs['jsx-runtime'].rules,\n  },\n})\n```\n","readmeFilename":"README.md"}