Commit 2dce637a759e2f51ca8c378a694fe83131659676

Authored by zichun
1 parent 8427fb70

chore(fe-login): 初始化前端工程骨架与测试栈 REQ-USR-004

Too many changes to show.

To preserve performance only 2 of 11 files are displayed.

frontend/.eslintrc.cjs 0 → 100644
  1 +/* eslint-env node */
  2 +module.exports = {
  3 + root: true,
  4 + env: { browser: true, es2021: true, node: true },
  5 + extends: [
  6 + 'eslint:recommended',
  7 + 'plugin:@typescript-eslint/recommended',
  8 + 'plugin:react-hooks/recommended',
  9 + ],
  10 + parser: '@typescript-eslint/parser',
  11 + parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
  12 + plugins: ['@typescript-eslint', 'react-refresh'],
  13 + ignorePatterns: ['dist', 'node_modules', 'coverage', 'playwright-report', 'test-results'],
  14 + rules: {
  15 + 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
  16 + '@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
  17 + '@typescript-eslint/no-explicit-any': 'off',
  18 + },
  19 + overrides: [
  20 + {
  21 + files: ['**/*.test.ts', '**/*.test.tsx', 'tests/**/*'],
  22 + globals: {
  23 + describe: 'readonly',
  24 + it: 'readonly',
  25 + test: 'readonly',
  26 + expect: 'readonly',
  27 + beforeEach: 'readonly',
  28 + afterEach: 'readonly',
  29 + beforeAll: 'readonly',
  30 + afterAll: 'readonly',
  31 + vi: 'readonly',
  32 + },
  33 + rules: {
  34 + 'react-refresh/only-export-components': 'off',
  35 + },
  36 + },
  37 + ],
  38 +};
... ...
frontend/index.html 0 → 100644
  1 +<!doctype html>
  2 +<html lang="zh-CN">
  3 + <head>
  4 + <meta charset="UTF-8" />
  5 + <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6 + <title>小羚羊 ERP - 企业业务能力平台</title>
  7 + </head>
  8 + <body>
  9 + <div id="root"></div>
  10 + <script type="module" src="/src/main.tsx"></script>
  11 + </body>
  12 +</html>
... ...