Skip to content

Add ESLint configuration and fix code quality issues#151

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/add-fake-product-detection
Draft

Add ESLint configuration and fix code quality issues#151
Copilot wants to merge 2 commits into
mainfrom
copilot/add-fake-product-detection

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 4, 2025

ESLint was failing with "couldn't find an eslint.config.(js|mjs|cjs) file" due to missing config for ESLint v9's flat config format.

Changes

ESLint Configuration

  • Added eslint.config.js with TypeScript, React hooks, and React refresh plugins
  • Configured ignores for dist/, node_modules/, and materialize_v13.11.0/
  • Relaxed rules for shadcn/ui components to suppress false positives on library patterns

Fixed unused imports

  • AIModelSettings.tsx: DialogTrigger
  • DashboardStats.tsx: formatLargeNumber
  • OrganizationSettings.tsx: Users, replaced any with TeamMember['role']
  • TransactionSignDialog.tsx: User
  • SendTransactionForm.tsx: XCircle, getRiskColor
  • mock-data.ts: TokenBalance
// Before
m.id === memberId ? { ...m, role: newRole as any } : m

// After
m.id === memberId ? { ...m, role: newRole as TeamMember['role'] } : m

OmniCore Wallet Overview


Note: This is a frontend prototype with mock data by design. Real blockchain/payment integrations would require backend infrastructure not present in this repository.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/runtime/0d8a8192229dfe2338a7/loaded
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/AICHI3LM11.29/AICHI3LM11.29/node_modules/.bin/vite --host (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

你已经做了个假货,你还做


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: hhongli1979-coder <244808107+hhongli1979-coder@users.noreply.github.com>
Copilot AI changed the title [WIP] Add detection for fake products in inventory Add ESLint configuration and fix code quality issues Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants