Commit 23815ef4 authored by Robert Knight's avatar Robert Knight

Enforce several additional style rules

parent c09f49f4
......@@ -21,6 +21,7 @@
"eqeqeq": "error",
"guard-for-in": "error",
"indent": ["error", 2],
"new-cap": "error",
"no-caller": "error",
"no-case-declarations": "error",
"no-console": [
......@@ -29,15 +30,19 @@
],
"no-extra-bind": "error",
"no-lone-blocks": "error",
"no-lonely-if": "error",
"no-multiple-empty-lines": "error",
"no-self-compare": "error",
"no-throw-literal": "error",
"no-undef-init": "error",
"no-unneeded-ternary": "error",
"no-unused-expressions": "error",
"no-use-before-define": [
"error",
{"functions": false},
],
"no-useless-concat": "error",
"one-var-declaration-per-line": ["error", "always"],
"semi": "error",
"strict": ["error", "safe"],
},
......
......@@ -19,7 +19,8 @@ function Controller($scope, $timeout, flash, session, formRespond, settings) {
}
function failure(form, response) {
var errors, reason;
var errors;
var reason;
try {
errors = response.data.errors;
......
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