Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix eslint no-undef #1462

Merged
merged 3 commits into from
Jan 13, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ module.exports = {
"env": {
"node": true
},
"globals": {
"Map": false,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't these be false by default?

"Promise": false,
"Set": false
},
"rules": {
// 2 == error, 1 == warning, 0 == off
"indent": [2, 2, {
Expand All @@ -21,6 +26,7 @@ module.exports = {
"number": true,
"string": true
}],
"no-undef": 2,
"no-unused-expressions": [2, {
"allowShortCircuit": true,
"allowTernary": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

/* global window, document, location */
/* global window, document, location, fetch */

'use strict';

Expand Down
1 change: 1 addition & 0 deletions lighthouse-core/gather/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,7 @@ class Driver {
* @return {function(...*): *} A wrapper around the original function.
*/
function captureJSCallUsage(funcRef, set) {
/* global window */
const __nativeError = window.__nativeError || Error;
const originalFunc = funcRef;
const originalPrepareStackTrace = __nativeError.prepareStackTrace;
Expand Down