Commit 73120811 authored by Nick Stenning's avatar Nick Stenning

Warn if Promise is used as a global

We support IE10/11, neither of which define Promise globals, so make
jshint warn if we use Promise without explicitly defining it (by
importing a polyfill).
parent b3b7631a
......@@ -26,6 +26,7 @@
"phantom": true,
"jquery": true,
"predef": [
"-Promise", // We currently support IE10-11 which lack a Promise global
"angular",
"assert",
"after",
......@@ -37,7 +38,6 @@
"it",
"require",
"sinon",
"Promise",
"URL"
]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment