Skip to content

Conversation

@wanderxuhq
Copy link

@wanderxuhq wanderxuhq commented Nov 27, 2025

💻 变更类型 | Change Type

  • feat
  • fix
  • refactor
  • perf
  • style
  • test
  • docs
  • ci
  • chore
  • build

🔀 变更说明 | Description of Change

During the git commit process, lint-staged is triggered by a husky pre-commit hook to run ESLint.

Because 302.AI is not a valid JavaScript identifier, the eslint-plugin-unused-imports plugin encounters an un-parsable syntax structure. This causes an internal error within the plugin, which aborts the pre-commit hook and prevents the commit from completing.

To resolve this parsing error within the ESLint plugin, this PR introduces the following changes:

  1. Rename: Renamed all object property related to 302.AI to AI302, which is a standard, valid JavaScript identifier.
  2. Update References: Updated all corresponding module references accordingly.

These changes ensure that the eslint-plugin-unused-imports plugin can parse the code correctly, allowing the pre-commit hook to execute successfully.

📝 补充信息 | Additional Information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant