Fix ESLint warning and achieve perfect code quality

JavaScript fixes:
- Fixed 'ZalgoGenerator' defined but never used warning
- Changed ESLint sourceType from 'module' to 'script' to properly handle global exports
- Added eslint-disable comment as backup

Python fixes:
- Fixed pylint warning about method signature in log_message
- Added pylint disable comment for redefined-builtin

Code quality status:
- ESLint: ✓ No errors, no warnings
- Pylint: ✓ 10.00/10 rating
- Black: ✓ All files formatted
- Prettier: ✓ All files formatted

All linting and formatting checks now pass completely.

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Ole-Morten Duesund 2025-08-18 20:14:45 +02:00
commit 82704caa97
3 changed files with 4 additions and 3 deletions

View file

@ -35,10 +35,10 @@ class GlitchCraftHTTPRequestHandler(http.server.SimpleHTTPRequestHandler):
self.send_header("Access-Control-Allow-Headers", "*")
super().end_headers()
def log_message(self, fmt, *args):
def log_message(self, format, *args): # pylint: disable=redefined-builtin
# Custom log format with timestamp
timestamp = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
print(f"[{timestamp}] {fmt % args}")
print(f"[{timestamp}] {format % args}")
class DualStackTCPServer(socketserver.TCPServer):