From 83e7e65d589d887202dd63cc0592d885e70c8704 Mon Sep 17 00:00:00 2001 From: Riku Rouvila Date: Thu, 21 May 2015 23:14:58 +0300 Subject: [PATCH] fix gulpfile's linting errors and modify rules --- .eslintrc | 4 ++-- gulpfile.js | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.eslintrc b/.eslintrc index 39afb57..54cf9d4 100644 --- a/.eslintrc +++ b/.eslintrc @@ -117,7 +117,7 @@ "no-warning-comments": [0, {"terms": ["todo", "fixme"], "location": "start"}], // disallow usage of configurable warning terms in comments": 2, // e.g. TODO or FIXME (off by default) "no-with": 2, // disallow use of the with statement "radix": 2, // require use of the second argument for parseInt() (off by default) - "vars-on-top": 2, // requires to declare all vars on top of their containing scope (off by default) + "vars-on-top": 0, // requires to declare all vars on top of their containing scope (off by default) "wrap-iife": 2, // require immediate function invocation to be wrapped in parentheses (off by default) "yoda": 2, // require or disallow Yoda conditions @@ -183,7 +183,7 @@ "semi": [1, "always"], // require or disallow use of semicolons instead of ASI "semi-spacing": [1, {"before": false, "after": true}], // enforce spacing before and after semicolons "sort-vars": 0, // sort variables within the same declaration block (off by default) - "space-after-keywords": [1, "always"], // require a space after certain keywords (off by default) + "space-after-keywords": [0, "never"], // require a space after certain keywords (off by default) "space-before-blocks": [1, "always"], // require or disallow space before blocks (off by default) "space-before-function-paren": [1, {"anonymous": "never", "named": "never"}], // require or disallow space before function opening parenthesis (off by default) "space-in-brackets": [1, "never"], // require or disallow spaces inside brackets (off by default) diff --git a/gulpfile.js b/gulpfile.js index 1314c56..736aa82 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,3 +1,4 @@ +/*eslint "no-var":0 */ 'use strict'; var browserify = require('browserify'); @@ -15,6 +16,7 @@ var stylus = require('gulp-stylus'); var uglify = require('gulp-uglify'); var watchify = require('watchify'); +/*eslint "no-process-env":0 */ var production = process.env.NODE_ENV === 'production'; var config = {