mirror of
https://github.com/iflytek/skillhub.git
synced 2026-08-28 11:25:00 +00:00
Implements 6 high-priority improvements from code review: Backend: - Make label business limits configurable via application.yml (max-definitions, max-per-skill) Frontend: - Split use-skill-queries.ts into domain-specific modules (label/namespace/user/skill) - Enable @typescript/no-explicit-any as warning and clean up 10 any types - Unify API error handling by removing unwrap() in favor of fetchJson() Testing: - Add label system scenarios to smoke test script - Add 6 new tests for label management UI (validation, rendering) All tests passing: 301 backend, 129 frontend
17 lines
513 B
JavaScript
17 lines
513 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: { browser: true, es2020: true },
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:react-hooks/recommended',
|
|
],
|
|
ignorePatterns: ['dist', '.eslintrc.cjs'],
|
|
parser: '@typescript-eslint/parser',
|
|
plugins: ['react-refresh'],
|
|
rules: {
|
|
'react-refresh/only-export-components': 'off',
|
|
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
|
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
},
|
|
}
|