kotones-auto-assistant/kotonebot-devtool
YXHXianYu 63e077206f chore(devtool): 新增了pnpm-lock,在pnpm包管理器下确保依赖一致 2025-03-14 12:26:40 +08:00
..
public/icons feat(devtool): 优化 DumpViewer 调用堆栈部分与时间部分的显示 2025-03-06 16:48:34 +08:00
src feat(devtool): 优化 DumpViewer 调用堆栈部分与时间部分的显示 2025-03-06 16:48:34 +08:00
.gitignore feat(devtool): ScriptRecorder 页面 2025-02-03 14:52:21 +08:00
README.md refactor(devtool): 使用 React 完全重构可视调试工具 2025-01-30 19:09:08 +08:00
eslint.config.js feat(devtool): 实现 ImageEditor 组件 2025-01-31 20:15:43 +08:00
index.html refactor(devtool): 使用 React 完全重构可视调试工具 2025-01-30 19:09:08 +08:00
package-lock.json feat(devtool): 脚本录制器的编辑器支持智能提示(LSP) 2025-02-04 20:28:38 +08:00
package.json feat(devtool): 脚本录制器的编辑器支持智能提示(LSP) 2025-02-04 20:28:38 +08:00
pnpm-lock.yaml chore(devtool): 新增了pnpm-lock,在pnpm包管理器下确保依赖一致 2025-03-14 12:26:40 +08:00
tsconfig.app.json refactor(devtool): 使用 React 完全重构可视调试工具 2025-01-30 19:09:08 +08:00
tsconfig.json refactor(devtool): 使用 React 完全重构可视调试工具 2025-01-30 19:09:08 +08:00
tsconfig.node.json refactor(devtool): 使用 React 完全重构可视调试工具 2025-01-30 19:09:08 +08:00
vite.config.ts refactor(devtool): 使用 React 完全重构可视调试工具 2025-01-30 19:09:08 +08:00

README.md

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:

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

  • Configure the top-level parserOptions property like this:
export default tseslint.config({
  languageOptions: {
    // other options...
    parserOptions: {
      project: ['./tsconfig.node.json', './tsconfig.app.json'],
      tsconfigRootDir: import.meta.dirname,
    },
  },
})
  • Replace tseslint.configs.recommended to tseslint.configs.recommendedTypeChecked or tseslint.configs.strictTypeChecked
  • Optionally add ...tseslint.configs.stylisticTypeChecked
  • Install eslint-plugin-react and update the config:
// eslint.config.js
import react from 'eslint-plugin-react'

export default tseslint.config({
  // Set the react version
  settings: { react: { version: '18.3' } },
  plugins: {
    // Add the react plugin
    react,
  },
  rules: {
    // other rules...
    // Enable its recommended rules
    ...react.configs.recommended.rules,
    ...react.configs['jsx-runtime'].rules,
  },
})