3x-ui/frontend/src
MHSanaei d6fe3d3823
build(frontend): bump eslint to 10 + add flat config + clean lint warnings
- Upgrade eslint 9.39 -> 10.3 and eslint-plugin-vue 9.33 -> 10.9
- Add eslint.config.js (flat config required by ESLint 10) with
  vue3-recommended rules, sensible defaults, and exemptions for the
  project's existing formatting style
- Drop --ext from the lint script (removed in ESLint 10)
- vue/no-mutating-props is left off because the form-modal pattern
  ports straight from Vue 2 (parent passes a reactive object, child
  mutates it); a real fix is an architectural rewire, separate task

Lint warning cleanup:
- utils/index.js: var -> let/const in the X25519 routines, replace
  obj.hasOwnProperty(...) with Object.prototype.hasOwnProperty.call(...)
- Remove unused imports (reactive, ref, Inbound) in ClientFormModal,
  InboundInfoModal, QrCodeModal, DnsServerModal, OutboundFormModal,
  SubPage; remove unused locals (isClientOnline, ONLINE_GRACE_MS,
  fetchAll, isSocks, isHTTP, _antdAlgorithm)
- XrayStatusCard: declare 'open-logs' on defineEmits (was emitted but
  not declared)
- RuleFormModal: rename v-for var t -> tag (shadowed useI18n's t)
- Drop stale eslint-disable directives (no-new, no-unused-vars)
- OutboundsTab/InboundList: drop redundant initial null assigns
- InboundInfoModal/OutboundFormModal: explicit eslint-disable for the
  intentional local-ref-shadows-prop pattern in modal drafts

`npm run lint` now passes with 0 errors and 0 warnings.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-09 02:36:47 +02:00
..
api fix(frontend): Phase 9 — restore index dashboard, fix login/CSRF, port legacy styles 2026-05-08 17:21:03 +02:00
components fix(frontend): inbound expand chevron position + cpu history layout 2026-05-09 01:08:20 +02:00
composables feat(frontend): jalali calendar + drop legacy moment-jalali 2026-05-09 00:17:25 +02:00
entries refactor(frontend): organize entry HTML + bootstrap JS into folders 2026-05-09 01:52:57 +02:00
i18n i18n: collapse two translation databases into a single web/translation/<lang>.json set 2026-05-08 18:05:56 +02:00
models refactor(frontend): merge utils/legacy.js into utils/index.js 2026-05-09 01:57:57 +02:00
pages build(frontend): bump eslint to 10 + add flat config + clean lint warnings 2026-05-09 02:36:47 +02:00
utils build(frontend): bump eslint to 10 + add flat config + clean lint warnings 2026-05-09 02:36:47 +02:00