Block a user
@dahyeon/editor (0.0.2)
Installation
@dahyeon:registry=https://git.dahyeon.us/api/packages/dahyeon/npm/npm install @dahyeon/editor@0.0.2"@dahyeon/editor": "0.0.2"About this package
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel (or oxc when used in rolldown-vite) for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Remove tseslint.configs.recommended and replace with this
tseslint.configs.recommendedTypeChecked,
// Alternatively, use this for stricter rules
tseslint.configs.strictTypeChecked,
// Optionally, add this for stylistic rules
tseslint.configs.stylisticTypeChecked,
// Other configs...
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Enable lint rules for React
reactX.configs['recommended-typescript'],
// Enable lint rules for React DOM
reactDom.configs.recommended,
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
Dependencies
Dependencies
| ID | Version |
|---|---|
| @lexical/html | ^0.38.2 |
| @lexical/list | ^0.38.2 |
| @lexical/markdown | ^0.38.2 |
| @lexical/react | ^0.38.2 |
| @lexical/rich-text | ^0.38.2 |
| @lexical/selection | ^0.38.2 |
| @lexical/utils | ^0.38.2 |
| @lexkit/editor | ^0.0.37 |
| lexical | ^0.38.2 |
Development Dependencies
| ID | Version |
|---|---|
| @eslint/js | ^9.39.1 |
| @tailwindcss/vite | ^4.1.17 |
| @types/node | ^24.10.0 |
| @types/react | ^19.2.2 |
| @types/react-dom | ^19.2.2 |
| @vitejs/plugin-react | ^5.1.0 |
| eslint | ^9.39.1 |
| eslint-plugin-react-hooks | ^7.0.1 |
| eslint-plugin-react-refresh | ^0.4.24 |
| globals | ^16.5.0 |
| tailwindcss | ^4.1.17 |
| typescript | ~5.9.3 |
| typescript-eslint | ^8.46.3 |
| vite | ^7.2.2 |
Peer Dependencies
| ID | Version |
|---|---|
| react | ^19 |
| react-dom | ^19 |
Details
Assets (1)
Versions (2)
View all
editor-0.0.2.tgz
83 KiB