Commit e18c9733 authored by Robert Knight's avatar Robert Knight

Enable block-scoped-var lint rule

This will ease migration to let/const in future.
parent d3f3657f
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
"Promise": false, "Promise": false,
}, },
"rules": { "rules": {
"block-scoped-var": "error",
"no-console": [ "no-console": [
"error", "error",
{ allow: ["warn", "error"] }, { allow: ["warn", "error"] },
......
'use strict'; 'use strict';
require('./polyfills');
var queryString = require('query-string'); var queryString = require('query-string');
require('./polyfills');
var raven;
// Initialize Raven. This is required at the top of this file // Initialize Raven. This is required at the top of this file
// so that it happens early in the app's startup flow // so that it happens early in the app's startup flow
var settings = require('./settings')(document); var settings = require('./settings')(document);
Object.assign(settings, queryString.parse(window.location.search)); Object.assign(settings, queryString.parse(window.location.search));
if (settings.raven) { if (settings.raven) {
var raven = require('./raven'); raven = require('./raven');
raven.init(settings.raven); raven.init(settings.raven);
} }
......
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