From 904eb07846772843d7f6634b8c4a8cb28f0a58d7 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Mon, 23 Mar 2015 12:16:43 -0700 Subject: Upgrade to grunt-eslint ^9.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5862e16..83ed3d3 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "grunt-browserify": "^3.2.1", "grunt-contrib-jshint": "^0.11.0", "grunt-contrib-nodeunit": "^0.4.1", - "grunt-eslint": "^7.0.0", + "grunt-eslint": "^9.0.0", "grunt-jscs": "^1.5.0", "jscs-jsdoc": "^0.4.0", "load-grunt-tasks": "^3.0.0", -- cgit v1.2.3 From 115b0d85e53713116db18fbab1ca19472929e7ea Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Mon, 23 Mar 2015 12:18:24 -0700 Subject: ESLint: enable no-dupe-args & no-duplicate-case --- .eslintrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.eslintrc b/.eslintrc index ebcdc19..2c0c1f4 100644 --- a/.eslintrc +++ b/.eslintrc @@ -18,6 +18,8 @@ "no-array-constructor": 2, "no-bitwise": 2, "no-constant-condition": 0, + "no-dupe-args": 2, + "no-duplicate-case": 2, "no-eval": 2, "no-floating-decimal": 2, "no-implied-eval": 2, -- cgit v1.2.3 From 2f1c2fb8da34b81adaa195a3c6b248d7f01ffb2c Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Mon, 23 Mar 2015 12:19:06 -0700 Subject: ESLint: no-extra-strict => global strict --- .eslintrc | 2 ++ Gruntfile.js | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.eslintrc b/.eslintrc index 2c0c1f4..834a1a2 100644 --- a/.eslintrc +++ b/.eslintrc @@ -21,6 +21,7 @@ "no-dupe-args": 2, "no-duplicate-case": 2, "no-eval": 2, + "no-extra-strict": 0, "no-floating-decimal": 2, "no-implied-eval": 2, "no-inline-comments": 0, @@ -51,6 +52,7 @@ "space-return-throw-case": 2, "space-unary-ops": [2, {"words": true, "nonwords": false}], "spaced-line-comment": [2, "always"], + "strict": [2, "global"], "vars-on-top": 0, "wrap-iife": [2, "inside"], "yoda": [2, "never"] diff --git a/Gruntfile.js b/Gruntfile.js index ac0db8d..14203d0 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,8 +1,7 @@ /*eslint-env node */ +'use strict'; module.exports = function (grunt) { - 'use strict'; - grunt.util.linefeed = '\n'; require('load-grunt-tasks')(grunt); -- cgit v1.2.3 From 21bf4b5a6e080c168d88e174c29203ebbf2bd483 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Mon, 23 Mar 2015 12:19:27 -0700 Subject: ESLint: no-space-before-semi => semi-spacing --- .eslintrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index 834a1a2..7fc2b7c 100644 --- a/.eslintrc +++ b/.eslintrc @@ -33,7 +33,6 @@ "no-process-env": 2, "no-reserved-keys": 0, "no-self-compare": 2, - "no-space-before-semi": 2, "no-spaced-func": 2, "no-throw-literal": 2, "no-trailing-spaces": 2, @@ -44,6 +43,7 @@ "quotes": 0, "radix": 2, "semi": [2, "always"], + "semi-spacing": [2, {"before": false, "after": true}], "space-after-keywords": [2, "always", {"checkFunctionKeyword": true}], "space-before-blocks": [2, "always"], "space-before-function-parentheses": [2, {"anonymous": "always", "named": "never"}], -- cgit v1.2.3 From e6d246672102cf0e73544d1068c7ce96ad99a020 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Mon, 23 Mar 2015 12:23:51 -0700 Subject: Enable es6 ESLint env in browser-side sourcecode --- src/browser/mq4-hover-shim.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/mq4-hover-shim.js b/src/browser/mq4-hover-shim.js index 91c5525..b8800ce 100644 --- a/src/browser/mq4-hover-shim.js +++ b/src/browser/mq4-hover-shim.js @@ -1,4 +1,4 @@ -/*eslint-env browser */ +/*eslint-env browser, es6 */ /*eslint no-var:2*/ /* jshint browser: true, esnext: true */ /* jshint -W080 */ -- cgit v1.2.3