mirror of https://github.com/zulip/zulip.git
Add Zulip-specific details in jslint used_before_a error message.
Previously, it wasn't clear why you were getting an error when trying to reference a newly added global variable.
This commit is contained in:
parent
2be7ac8d70
commit
c947f3ed3c
|
@ -607,7 +607,10 @@ var JSLINT = (function () {
|
||||||
use_object: "Use the object literal notation {}.",
|
use_object: "Use the object literal notation {}.",
|
||||||
use_or: "Use the || operator.",
|
use_or: "Use the || operator.",
|
||||||
use_param: "Use a named parameter.",
|
use_param: "Use a named parameter.",
|
||||||
used_before_a: "'{a}' was used before it was defined.",
|
used_before_a: "'{a}' was used before it was defined. (If you " +
|
||||||
|
"have added a new module, you need to add it to the whitelist " +
|
||||||
|
"in tools/jslist/check-all.js; if it's a new global you should " +
|
||||||
|
"change it to be an export of the appropriate module)",
|
||||||
var_a_not: "Variable {a} was not declared correctly.",
|
var_a_not: "Variable {a} was not declared correctly.",
|
||||||
weird_assignment: "Weird assignment.",
|
weird_assignment: "Weird assignment.",
|
||||||
weird_condition: "Weird condition.",
|
weird_condition: "Weird condition.",
|
||||||
|
|
Loading…
Reference in New Issue