Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Set source type to strict, print errors with stylish not checkstyle These changes relate to #348 - Set eslint env variables: ecmaVersion 5, strict, no jsx support, and must use semicolons - Changed cmd output from checkstyle, which lists every js file linted, to cleaner stylish output which only outputs errors.

ZachTRice330399661d8f
diff --git a/.eslintrc b/.eslintrc
index 1249da891..e0e9bf6be 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -4,7 +4,14 @@
"browser": true,
"node": true
},
- "parser": "esprima",
+ "parserOptions": {
+ "ecmaVersion": 5,
+ "sourceType": "script",
+ "ecmaFeatures": {
+ "jsx": false
+ }
+ },
"rules": {
+ "semi": [2, "always"]
}
}
diff --git a/Gruntfile.js b/Gruntfile.js
index bc6b0202c..492aea7e2 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -605,8 +605,7 @@ module.exports = function(grunt) {
eslint: {
options: {
configFile: ".eslintrc",
- format: "checkstyle",
- silent: true
+ format: "stylish"
},
src: [
"web/js/**/wv.*.js",