Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

changed linter warnings to errors

Mike McGann293b2d2cb210
diff --git a/.eslintrc b/.eslintrc
index b2d264bc7..3463a9e32 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -14,45 +14,45 @@
"rules": {
"semi": ["error", "always"],
"space-before-function-paren": "off",
- "object-curly-spacing": ["warn", "always"],
+ "object-curly-spacing": ["error", "always"]
},
"overrides": [
{
"files": [ "web/**/*.js", "test/**/*.js" ],
"rules": {
- "no-octal": "warn",
- "no-unused-vars": "warn",
- "no-undef": "warn",
- "no-useless-escape": "warn",
- "eqeqeq": "warn",
- "padded-blocks": "warn",
- "space-before-blocks": "warn",
- "spaced-comment": "warn",
- "no-multiple-empty-lines": "warn",
- "operator-linebreak": "warn",
- "comma-dangle": "warn",
- "no-use-before-define": "warn",
- "camelcase": "warn",
- "no-extend-native": "warn",
- "one-var": "warn",
- "no-extra-parens": "warn",
- "space-in-parens": "warn",
- "space-infix-ops": "warn",
- "no-multi-spaces": "warn",
- "comma-spacing": "warn",
- "yoda": "warn",
- "no-useless-return": "warn",
- "keyword-spacing": "warn",
- "brace-style": "warn",
- "func-call-spacing": "warn",
- "no-return-assign": "warn",
- "no-sequences": "warn",
- "no-unused-expressions": "warn",
- "no-useless-call": "warn",
- "no-trailing-spaces": "warn",
- "standard/computed-property-even-spacing": "warn",
- "wrap-iife": "warn",
- "new-cap": "warn"
+ "no-octal": "error",
+ "no-unused-vars": "error",
+ "no-undef": "error",
+ "no-useless-escape": "error",
+ "eqeqeq": "error",
+ "padded-blocks": "error",
+ "space-before-blocks": "error",
+ "spaced-comment": "error",
+ "no-multiple-empty-lines": "error",
+ "operator-linebreak": "error",
+ "comma-dangle": "error",
+ "no-use-before-define": "error",
+ "camelcase": "error",
+ "no-extend-native": "error",
+ "one-var": "error",
+ "no-extra-parens": "error",
+ "space-in-parens": "error",
+ "space-infix-ops": "error",
+ "no-multi-spaces": "error",
+ "comma-spacing": "error",
+ "yoda": "error",
+ "no-useless-return": "error",
+ "keyword-spacing": "error",
+ "brace-style": "error",
+ "func-call-spacing": "error",
+ "no-return-assign": "error",
+ "no-sequences": "error",
+ "no-unused-expressions": "error",
+ "no-useless-call": "error",
+ "no-trailing-spaces": "error",
+ "standard/computed-property-even-spacing": "error",
+ "wrap-iife": "error",
+ "new-cap": "error"
}
}
]
diff --git a/web/js/data/results.js b/web/js/data/results.js
index a0b79b9ac..1bd58d724 100644
--- a/web/js/data/results.js
+++ b/web/js/data/results.js
@@ -874,4 +874,3 @@ export function dataResultsVersionFilterExact(version) {
return self;
};
-
diff --git a/web/js/map/ui.js b/web/js/map/ui.js
index 3e6f37e06..07ddcae63 100644
--- a/web/js/map/ui.js
+++ b/web/js/map/ui.js
@@ -922,7 +922,6 @@ export function mapui(models, config) {
.mousemove(hoverThrottle = lodashThrottle(onMouseMove, 300));
};
-
init();
return self;
};