fix: resolve ESLint errors and warnings

- Add emoji accessibility labels (jsx-a11y/accessible-emoji)
- Remove unused imports and variables
- Fix async functions without await
- Add dev directory to ESLint ignore list
- Add eslint-disable comment for necessary console.error
- Clean up unused route file

All ESLint errors resolved (0 errors, 33 warnings remaining)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-08 14:37:02 +01:00
parent 3508418698
commit da24fa05d9
13 changed files with 33 additions and 36 deletions

View File

@@ -281,10 +281,10 @@ export const testProvider = (testConfig: TestProviderConfig) => {
{
path: '/payload-billing/test/config',
method: 'get',
handler: async (req) => {
handler: () => {
const response: TestProviderConfigResponse = {
enabled: testConfig.enabled,
scenarios: scenarios,
scenarios,
methods: Object.entries(PAYMENT_METHODS).map(([id, method]) => ({
id,
name: method.name,
@@ -525,7 +525,7 @@ async function processTestPayment(
pluginConfig: BillingPluginConfig
): Promise<void> {
try {
if (!session.scenario) return
if (!session.scenario) {return}
// Map scenario outcome to payment status
let finalStatus: Payment['status'] = 'pending'