综合选色器网站
Go to file
2025-01-10 09:05:11 +08:00
color-module 增加内置的颜色色卡支持。 2025-01-10 09:03:14 +08:00
public 移除不再需要的文件。 2024-12-25 09:33:20 +08:00
src 更新WASM中检索色卡的功能。 2025-01-10 09:05:11 +08:00
.editorconfig 创建基础项目结构。 2024-12-24 14:08:23 +08:00
.gitignore 解除CSS Module文件的屏蔽。 2024-12-25 09:29:46 +08:00
.prettierignore 创建基础项目结构。 2024-12-24 14:08:23 +08:00
.prettierrc 创建基础项目结构。 2024-12-24 14:08:23 +08:00
bun.lockb 补充缺少的依赖。 2024-12-25 09:31:31 +08:00
eslint.config.js 关闭强制依赖项非空的提示。 2024-12-26 15:26:52 +08:00
index.html 创建基础项目结构。 2024-12-24 14:08:23 +08:00
NoColor.svg 增加无颜色展示的提示图片。 2024-12-30 13:08:56 +08:00
package.json 补充缺少的依赖。 2024-12-25 09:31:31 +08:00
README.md 创建基础项目结构。 2024-12-24 14:08:23 +08:00
tsconfig.app.json 创建基础项目结构。 2024-12-24 14:08:23 +08:00
tsconfig.json 创建基础项目结构。 2024-12-24 14:08:23 +08:00
tsconfig.node.json 创建基础项目结构。 2024-12-24 14:08:23 +08:00
vite.config.ts 创建基础项目结构。 2024-12-24 14:08:23 +08:00

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,
  },
})