Skip to content

Commit

Permalink
Linting config update
Browse files Browse the repository at this point in the history
  • Loading branch information
voltrevo committed Nov 9, 2015
1 parent 581df4f commit a483eff
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 19 deletions.
10 changes: 0 additions & 10 deletions .eslintrc
@@ -1,13 +1,3 @@
{
"extends": "eslint-config-voltrevo",

"rules": {
"vars-on-top": 0,
"no-warning-comments": 0,
"dot-notation": [2, {"allowKeywords": true}],
"no-undef-init": 0,
"no-nested-ternary": 0,
"new-cap": 0,
"yoda": [2, "never", { "exceptRange": true }]
}
}
5 changes: 3 additions & 2 deletions gulpfile.js
@@ -1,4 +1,5 @@
'use strict';

var path = require('path');
var gulp = require('gulp');
var eslint = require('gulp-eslint');
Expand All @@ -18,7 +19,7 @@ gulp.task('static', function() {
});

gulp.task('nsp', function(cb) {
nsp('package.json', cb);
nsp({package: path.join(__dirname, '/package.json')}, cb);
});

gulp.task('pre-test', function() {
Expand All @@ -34,7 +35,7 @@ gulp.task('test', ['pre-test'], function(cb) {

gulp.src('test/**/*.js')
.pipe(plumber())
.pipe(mocha({ reporter: 'spec' }))
.pipe(mocha({reporter: 'spec'}))
.on('error', function(err) {
mochaErr = err;
})
Expand Down
2 changes: 1 addition & 1 deletion lib/Memory/UnderlyingFilesystem.js
Expand Up @@ -42,7 +42,7 @@ module.exports = function() {
throw new Error('File path conflicts with a directory.');
}

files[ufsPath] = { value: buffer };
files[ufsPath] = {value: buffer};
});
};

Expand Down
4 changes: 2 additions & 2 deletions lib/System/Dir.js
Expand Up @@ -72,8 +72,8 @@ var isDirNonEmpty = function(dirInfo) {
objInfos.filter(function(objInfo) {
return objInfo.stats.isDirectory();
}),
function(dirInfo) {
return isDirNonEmpty(dirInfo);
function(subDirInfo) {
return isDirNonEmpty(subDirInfo);
}
);
});
Expand Down
9 changes: 5 additions & 4 deletions package.json
Expand Up @@ -20,16 +20,17 @@
"simple"
],
"devDependencies": {
"eslint-config-voltrevo": "0.0.3",
"eslint-config-voltrevo": "^1.0.0",
"eslint-plugin-filesize": "^0.1.2",
"eslint-plugin-require-path-exists": "^1.0.15",
"gulp": "^3.6.0",
"gulp-coveralls": "^0.1.0",
"gulp-eslint": "^1.0.0",
"gulp-exclude-gitignore": "^1.0.0",
"gulp-istanbul": "^0.9.0",
"gulp-mocha": "^2.0.0",
"gulp-plumber": "^1.0.0",
"gulp-nsp": "^0.4.5",
"gulp-coveralls": "^0.1.0"
"gulp-nsp": "^2.1.0",
"gulp-plumber": "^1.0.0"
},
"scripts": {
"prepublish": "gulp prepublish",
Expand Down

0 comments on commit a483eff

Please sign in to comment.