Skip to content

added a middleware for rateLimit #171

added a middleware for rateLimit

added a middleware for rateLimit #171

Triggered via push April 24, 2024 01:29
Status Failure
Total duration 32s
Artifacts

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

3 errors
lint: src/middleware/rateLimiter.ts#L10
Replace `req:·Request,·res:·Response,·next:·NextFunction` with `⏎····req:·Request,⏎····res:·Response,⏎····next:·NextFunction⏎`
lint: src/middleware/rateLimiter.ts#L11
Replace `'localhost'·||·req.hostname·===·'127.0.0.1'` with `"localhost"·||·req.hostname·===·"127.0.0.1"`
lint
Process completed with exit code 1.