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

Enforce several additional style rules

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