@dahyeon/editor (0.0.2)

Published 2025-11-18 08:26:57 +00:00 by dahyeon in dahyeon/Editor

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:

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
npm
2025-11-18 08:26:57 +00:00
2
83 KiB
Assets (1)
Versions (2) View all
0.0.3 2025-11-18
0.0.2 2025-11-18