CB-12895 : setup eslint and remove jshint
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/20c2f03b Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/20c2f03b Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/20c2f03b Branch: refs/heads/1.5.x Commit: 20c2f03ba55663dd3aebecb8558b8f2c36e1651f Parents: ae26220 Author: Audrey So <audre...@apache.org> Authored: Fri Jun 9 14:01:44 2017 -0700 Committer: Audrey So <audre...@apache.org> Committed: Fri Jul 14 13:31:53 2017 -0700 ---------------------------------------------------------------------- .eslintrc.yml | 10 ++++ package.json | 132 ++++++++++++++++++++++++++++------------------------- src/help.js | 7 +-- 3 files changed, 83 insertions(+), 66 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/20c2f03b/.eslintrc.yml ---------------------------------------------------------------------- diff --git a/.eslintrc.yml b/.eslintrc.yml new file mode 100644 index 0000000..f6aae32 --- /dev/null +++ b/.eslintrc.yml @@ -0,0 +1,10 @@ +root: true +extends: semistandard +rules: + indent: + - error + - 4 + camelcase: off + padded-blocks: off + operator-linebreak: off + no-throw-literal: off http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/20c2f03b/package.json ---------------------------------------------------------------------- diff --git a/package.json b/package.json index 631fd48..35a069f 100644 --- a/package.json +++ b/package.json @@ -1,72 +1,78 @@ { - "author": "Andrew Lunny <alu...@gmail.com>", - "name": "plugman", - "description": "install/uninstall Cordova plugins", - "version": "1.5.1-dev", - "repository": { - "type": "git", - "url": "git://git-wip-us.apache.org/repos/asf/cordova-plugman.git" + "author": "Andrew Lunny <alu...@gmail.com>", + "name": "plugman", + "description": "install/uninstall Cordova plugins", + "version": "1.5.1-dev", + "repository": { + "type": "git", + "url": "git://git-wip-us.apache.org/repos/asf/cordova-plugman.git" + }, + "bugs": { + "url": "https://issues.apache.org/jira/browse/CB", + "email": "d...@cordova.apache.org" + }, + "main": "plugman.js", + "engines": { + "node": ">=0.9.9" + }, + "engineStrict": true, + "dependencies": { + "cordova-lib": "7.0.0", + "nopt": "1.0.9", + "q": "1.0.1" + }, + "devDependencies": { + "eslint": "^4.2.0", + "eslint-config-semistandard": "^11.0.0", + "eslint-config-standard": "^10.2.1", + "eslint-plugin-import": "^2.3.0", + "eslint-plugin-node": "^5.0.0", + "eslint-plugin-promise": "^3.5.0", + "eslint-plugin-standard": "^3.0.1", + "jasmine-node": "1.14.5" + }, + "bin": { + "plugman": "./main.js" + }, + "scripts": { + "test": "npm run jasmine && npm run eslint", + "eslint": "node node_modules/eslint/bin/eslint src", + "jasmine": "jasmine-node --captureExceptions --color spec" + }, + "license": "Apache-2.0", + "contributors": [ + { + "name": "Anis Kadri" }, - "bugs": { - "url": "https://issues.apache.org/jira/browse/CB", - "email": "d...@cordova.apache.org" + { + "name": "Tim Kim" }, - "main": "plugman.js", - "engines": { - "node": ">=0.9.9" + { + "name": "Braden Shepherdson" }, - "engineStrict": true, - "dependencies": { - "cordova-lib": "7.0.0", - "nopt": "1.0.9", - "q": "1.0.1" + { + "name": "Ryan Willoughby" }, - "devDependencies": { - "jshint": "2.5.8", - "jasmine-node": "1.14.5" + { + "name": "Brett Rudd" }, - "bin": { - "plugman": "./main.js" + { + "name": "Mike Reinstein" }, - "scripts": { - "test": "npm run jasmine && npm run jshint", - "jshint": "node node_modules/jshint/bin/jshint src", - "jasmine": "jasmine-node --captureExceptions --color spec" + { + "name": "Shazron Abdullah" }, - "license": "Apache-2.0", - "contributors": [ - { - "name": "Anis Kadri" - }, - { - "name": "Tim Kim" - }, - { - "name": "Braden Shepherdson" - }, - { - "name": "Ryan Willoughby" - }, - { - "name": "Brett Rudd" - }, - { - "name": "Mike Reinstein" - }, - { - "name": "Shazron Abdullah" - }, - { - "name": "Steve Gill" - }, - { - "name": "Fil Maj" - }, - { - "name": "Michael Brooks" - }, - { - "name": "Jesse MacFadyen" - } - ] + { + "name": "Steve Gill" + }, + { + "name": "Fil Maj" + }, + { + "name": "Michael Brooks" + }, + { + "name": "Jesse MacFadyen" + } + ] } http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/20c2f03b/src/help.js ---------------------------------------------------------------------- diff --git a/src/help.js b/src/help.js index 1d24d85..f2233b5 100644 --- a/src/help.js +++ b/src/help.js @@ -16,10 +16,11 @@ specific language governing permissions and limitations under the License. */ -var fs = require('fs'), - path = require('path'); + +var fs = require('fs'); +var path = require('path'); var doc_txt = path.join(__dirname, '..', 'doc', 'help.txt'); -module.exports = function help() { +module.exports = function help () { return fs.readFileSync(doc_txt, 'utf-8'); }; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org