yuwen
2025-11-12 4eddb3a0fd83027e2a16bf817394ace44d405154
feat: add environment configuration files for development and testing
修改1個檔案
新增2個檔案
20 ■■■■■ 已變更過的檔案
.env.development 3 ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
.env.test 3 ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
eslint.config.ts 14 ●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
.env.development
比對新檔案
@@ -0,0 +1,3 @@
VITE_NODE_ENV="development"
VITE_TITLE=""
VITE_BASE_API="http://localhost:5173"
.env.test
比對新檔案
@@ -0,0 +1,3 @@
VITE_NODE_ENV="test"
VITE_TITLE=""
VITE_BASE_API="http://localhost:5173"
eslint.config.ts
@@ -20,15 +20,25 @@
  pluginVue.configs['flat/essential'],
  vueTsConfigs.recommended,
  {
    ...pluginVitest.configs.recommended,
    files: ['src/**/__tests__/*'],
  },
  {
    ...pluginPlaywright.configs['flat/recommended'],
    files: ['e2e/**/*.{test,spec}.{js,ts,jsx,tsx}'],
  },
  skipFormatting,
  {
    rules: {
      'vue/multi-word-component-names': [
        'error',
        {
          ignores: ['index', 'Icon'],
        },
      ],
    },
  },
)