Skip to content

Commit

Permalink
Linting: update gulp-eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingun committed Jan 19, 2018
1 parent fa18513 commit fd9515f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
10 changes: 8 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ module.exports = {
"no-label-var": "error",
"no-shadow-restricted-names": "error",
"no-undef-init": "error",
"no-buffer-constructor": "error",

// ----- Node.js and CommonJS -----
"no-new-require": "error",
Expand All @@ -84,7 +85,7 @@ module.exports = {
"eol-last": ["error", "always"],
"func-call-spacing": ["error", "never"],
"func-style": ["error", "declaration"],
"indent": ["error", 2, {
"indent-legacy": ["error", 2, {
SwitchCase: 1,
VariableDeclarator: 1,
outerIIFEBody: 1,
Expand All @@ -98,7 +99,12 @@ module.exports = {
mode: "minimum"
}],
"keyword-spacing": ["error", { before: true, after: true }],
"lines-around-directive": ["error", "always"],
"padding-line-between-statements": ["error",
{ blankLine: "always", prev: "directive", next: "*" },
{ blankLine: "any", prev: "directive", next: "directive" },
{ blankLine: "always", prev: "*", next: "return" },
{ blankLine: "any", prev: "block-like", next: "return" },
],
"max-len": ["error", {
code: 100,
ignoreComments: true,
Expand Down
1 change: 0 additions & 1 deletion bin/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ while (args.length > 0) {
}

switch (argument) {

case "--":
options["--"] = args;
args = [];
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@
"express": "^4.16.2",
"glob": "^7.1.2",
"gulp": "^3.9.1",
"gulp-eslint": "^3.0.1",
"gulp-header": "^1.8.9",
"gulp-eslint": "^4.0.1",
"gulp-header": "1 - 2",
"gulp-mocha": "^5.0.0",
"gulp-rename": "^1.2.2",
"gulp-transform": "^3.0.5",
"gulp-uglify": "^3.0.0",
"morgan": "^1.9.0",
"nyc": "^11.3.0",
"run-sequence": "^2.2.0",
"sinon": "^4.1.3",
"sinon": "^4.1.4",
"vinyl-buffer": "^1.0.1",
"vinyl-source-stream": "^2.0.0"
},
Expand Down

0 comments on commit fd9515f

Please sign in to comment.