Open Bug 1876516 Opened 6 months ago Updated 6 months ago

Change ConsoleLogLevel strings from PascalCase to CamelCase


(Core :: DOM: Core & HTML, task)





(Reporter: standard8, Unassigned)


(Depends on 1 open bug, Blocks 1 open bug)


Currently, the ConsoleLogLevel strings are using PascalCase.

For most of our property and variable names in JavaScript we use camelCase, rather than PascalCase.

We think we should therefore change the ConsoleLogLevel strings to use camelCase so that they are more consistent with the rest of the code base. This would make it easier for developers use the correct case as it would be one they are expecting.

This will likely require some additional work to update the existing instances. If done after bug 1876514, then we would not need to update preference values, only the in-code values.

It might also be worth looking to see if a lint rule is possible to enforce the values, but that may be better split off to a separate bug.

You need to log in before you can comment on or make changes to this bug.