diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 388352d..0000000 --- a/.eslintrc +++ /dev/null @@ -1,13 +0,0 @@ -{ - "rules": { - "semi": [2, "always"], - 'no-spaced-func': 0, - "no-unused-vars": [2, { "args": "none" }], - 'comma-dangle': [2, 'never'] - }, - "env": { - "node": true, - "mocha": true - }, - "extends": ["loopback"] -} \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js index b089b53..5362f57 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -29,20 +29,6 @@ function isFixed(file) { return file.eslint != null && file.eslint.fixed; } -gulp.task('lint', function() { - var hasFixFlag = (process.argv.slice(2).indexOf('--fix') >= 0); - return gulp.src([ - 'index.js', - 'lib/**/*.js', - '!node_modules/**']) - .pipe(eslint({ - fix: hasFixFlag - })) - .pipe(eslint.format()) - .pipe(gulpIf(isFixed, gulp.dest('./.fixtures'))) - .pipe(eslint.failAfterError()); -}); - gulp.task('test', function (cb) { gulp.src([ 'index.js', @@ -72,7 +58,6 @@ gulp.task('codacy', function codacyTask() { gulp.task('default', [ 'test', - 'lint', 'shrinkwrap', 'nsp', 'codacy' diff --git a/package.json b/package.json index 3dd2ebe..56b38d3 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,11 @@ { "name": "loopback-ssl", - "version": "0.0.9", + "version": "1.0.0", "description": "Node module to enable HTTPS/SSL in a loopback application with simple configurations. The module in addition enables trusted peer authentication.", "main": "index.js", "scripts": { - "test": "mocha test" + "test": "mocha test", + "lint": "eslint ." }, "repository": { "type": "git", @@ -27,29 +28,29 @@ "homepage": "https://github.com/yantrashala/loopback-ssl#readme", "devDependencies": { "chai": "3.5.0", - "codacy-coverage": "2.0.0", + "codacy-coverage": "2.0.1", "compression": "1.6.2", "cors": "2.8.1", - "eslint-config-loopback": "4.0.0", "gulp": "3.9.1", "gulp-codacy": "1.0.0", "gulp-eslint": "3.0.1", "gulp-exit": "0.0.2", - "gulp-if": "2.0.1", - "gulp-istanbul": "1.0.0", - "gulp-mocha": "2.2.0", + "gulp-if": "2.0.2", + "gulp-istanbul": "1.1.1", + "gulp-mocha": "4.1.0", "gulp-nsp": "2.4.2", - "gulp-shrinkwrap": "2.0.1", + "gulp-shrinkwrap": "2.0.3", "helmet": "1.3.0", "loopback": "2.36.0", "loopback-boot": "2.23.0", "loopback-component-explorer": "2.7.0", "loopback-datasource-juggler": "2.53.0", "loopback-testing": "1.4.0", - "mocha": "3.1.2", - "mocha-lcov-reporter": "1.2.0", + "mocha": "3.2.0", + "mocha-lcov-reporter": "1.3.0", "serve-favicon": "2.0.1", "shrinkwrap": "0.4.0", "tape": "4.6.2" - } -} + }, + "dependencies": {} +} \ No newline at end of file