diff --git a/.eslintrc b/.eslintrc index 9d15bb9..a5a4a17 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,16 +1,3 @@ { - "ecmaFeatures": { - "jsx": true - }, - "rules": { - "semi": [2, "always"], - "quotes": [2, "single"], - "strict": [2, "global"], - "no-underscore-dangle": 0 - }, - "env": { - "es6": true, - "browser": true, - "node": true - } + "extends": "gulp" } diff --git a/.jscsrc b/.jscsrc new file mode 100644 index 0000000..703b33f --- /dev/null +++ b/.jscsrc @@ -0,0 +1,3 @@ +{ + "preset": "gulp" +} diff --git a/README.md b/README.md index e72aef2..a9e58a9 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # default-resolution -[![Travis Build Status](https://img.shields.io/travis/phated/default-resolution/master.svg?label=travis&style=flat-square)](https://travis-ci.org/phated/default-resolution) +[![Travis Build Status](https://img.shields.io/travis/gulpjs/default-resolution/master.svg?label=travis&style=flat-square)](https://travis-ci.org/gulpjs/default-resolution) Get the default resolution time based on the current node version, optionally overridable -Originally implemented by @dinoboff in https://github.com/phated/undertaker/pull/17 +Originally implemented by @dinoboff in https://github.com/gulpjs/undertaker/pull/17 Split out for standalone use. @@ -29,7 +29,7 @@ defaultResolution(12); | 0.10 | 1s | | 0.11+ | 1ms | -More information at https://github.com/phated/undertaker/pull/17#issuecomment-82374512 +More information at https://github.com/gulpjs/undertaker/pull/17#issuecomment-82374512 # License diff --git a/node-version.js b/node-version.js index 077cde0..459ce75 100644 --- a/node-version.js +++ b/node-version.js @@ -4,7 +4,7 @@ var match = process.version.match(/v(\d+)\.(\d+)\.(\d+)/); var nodeVersion = { major: match[1], minor: match[2], - patch: match[3] + patch: match[3], }; module.exports = nodeVersion; diff --git a/package.json b/package.json index f22a3d1..22db55b 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "contributors": [ "Damien Lebrun " ], - "repository": "phated/default-resolution", + "repository": "gulpjs/default-resolution", "license": "MIT", "engines": { "node": ">= 0.10" @@ -18,11 +18,16 @@ "node-version.js" ], "scripts": { - "test": "lab -cvL" + "lint": "eslint . && jscs *.js test/", + "test": "lab -cv" }, "dependencies": {}, "devDependencies": { "code": "^1.4.0", + "eslint": "^1.7.3", + "eslint-config-gulp": "^2.0.0", + "jscs": "^2.4.0", + "jscs-preset-gulp": "^1.0.0", "lab": "^5.5.1" }, "keywords": [ diff --git a/test/.eslintrc b/test/.eslintrc new file mode 100644 index 0000000..06b940f --- /dev/null +++ b/test/.eslintrc @@ -0,0 +1,3 @@ +{ + "extends": "gulp/test" +} diff --git a/test/default-resolution.js b/test/default-resolution.js index 2b0e483..0e3cd45 100644 --- a/test/default-resolution.js +++ b/test/default-resolution.js @@ -7,7 +7,7 @@ var defaultResolution = require('../'); var nodeVersion = require('../node-version'); lab.describe('defaultResolution', function() { - // typically I don't unit test helpers, but this reduces the last run tests + // Typically I don't unit test helpers, but this reduces the last run tests var major = nodeVersion.major; var minor = nodeVersion.minor;