Closed Bug 1736022 Opened 3 years ago Closed 3 years ago

[ESLint] Add handleRequest as a used variable for sjs files

Categories

(Developer Infrastructure :: Lint and Formatting, task, P2)

Tracking

(firefox95 fixed)

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(2 files)

In bug 1576768 we are turning on ESLint for .sjs files. handleRequest is expected to be defined in sjs files as that is the main function.

We should automatically mark this as used, so that ESLint doesn't complain about it not being used.

This moves the more expensive check for testing the file type until after we've found an instance of setTimeout.
This is quicker as the initial checks are for simple comparisons.

Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/688c4dce6f82 Speed up ESLint rule no-arbitrary-setTimeout.js. r=Gijs https://hg.mozilla.org/integration/autoland/rev/448e4e17ceff For ESLint, mark 'handleRequest' as a used variable for sjs files. r=Gijs
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: