From 768d7b2928c4ce8d241f4d249ed9427ce86b8c8d Mon Sep 17 00:00:00 2001 From: Piotr Nalepa Date: Thu, 25 May 2017 17:47:19 +0200 Subject: [PATCH] Corrected code styling --- .jshintrc | 100 ++++++++++++++++++++++---------------------- module-generator.js | 6 ++- template.common.js | 2 +- template.es6.js | 4 +- 4 files changed, 57 insertions(+), 55 deletions(-) diff --git a/.jshintrc b/.jshintrc index 7c51b53..09e24d4 100644 --- a/.jshintrc +++ b/.jshintrc @@ -1,54 +1,54 @@ { - "browser": true, - "node": true, - "bitwise": true, - "curly": true, - "eqeqeq": false, - "forin": true, - "immed": true, - "newcap": true, - "noarg": true, - "noempty": true, - "nomen": false, - "onevar": true, - "plusplus": false, - "regexp": false, - "strict": false, - "trailing": true, - "unused": "vars", - "white": false, - "asi": false, - "boss": false, - "debug": false, - "eqnull": false, - "es5": false, - "esnext": false, - "evil": false, - "expr": false, - "funcscope": false, - "globalstrict": false, - "iterator": false, - "lastsemic": false, - "laxbreak": true, - "laxcomma": false, - "loopfunc": false, - "multistr": false, - "onecase": false, - "proto": false, - "regexdash": false, - "scripturl": false, - "shadow": false, - "smarttabs": false, - "sub": false, - "supernew": false, - "maxerr": 500, - "maxlen": 150, - "passfail": false, - "latedef": true, - "camelcase": true, - "indent": 4, - "undef": true, + "asi": false, + "bitwise": true, + "boss": false, + "browser": true, + "camelcase": true, + "curly": true, + "debug": false, + "eqeqeq": false, + "eqnull": false, + "es5": false, + "esnext": false, + "evil": false, + "expr": false, + "forin": true, + "funcscope": false, "globals": { "Dragster": true - } + }, + "globalstrict": false, + "immed": true, + "indent": 4, + "iterator": false, + "lastsemic": false, + "latedef": true, + "laxbreak": true, + "laxcomma": false, + "loopfunc": false, + "maxerr": 500, + "maxlen": 150, + "multistr": false, + "newcap": true, + "noarg": true, + "node": true, + "noempty": true, + "nomen": false, + "onecase": false, + "onevar": true, + "passfail": false, + "plusplus": false, + "proto": false, + "regexdash": false, + "regexp": false, + "scripturl": false, + "shadow": false, + "smarttabs": false, + "strict": false, + "sub": false, + "supernew": false, + "trailing": true, + "undef": true, + "unused": "vars", + "white": false } diff --git a/module-generator.js b/module-generator.js index 565a527..0c5bba3 100644 --- a/module-generator.js +++ b/module-generator.js @@ -1,3 +1,5 @@ +/* global Promise */ + var fs = require('fs'); var promises = [ new Promise(function (resolve, reject) { @@ -9,7 +11,7 @@ var promises = [ } resolve(data); - }) + }); }), new Promise(function (resolve, reject) { fs.readFile('dragster-comment.js', 'utf8', function (error, data) { @@ -20,7 +22,7 @@ var promises = [ } resolve(data); - }) + }); }), new Promise(function (resolve, reject) { fs.readFile('template.common.js', 'utf8', function (error, data) { diff --git a/template.common.js b/template.common.js index 2800b65..dcf2eef 100644 --- a/template.common.js +++ b/template.common.js @@ -1,4 +1,4 @@ -[COMMENT] +[COMMENT] //jshint ignore:line ;(function (root, moduleName, factory) { 'use strict'; diff --git a/template.es6.js b/template.es6.js index 8c9b5cb..4c9dc5f 100644 --- a/template.es6.js +++ b/template.es6.js @@ -1,4 +1,4 @@ -[COMMENT] -[DRAGSTER] +[COMMENT] //jshint ignore:line +[DRAGSTER] //jshint ignore:line export default Dragster;