Skip to content
Permalink
Browse files
CB-12895 : setup eslint and remove jshint
  • Loading branch information
audreyso committed Jul 14, 2017
1 parent ae26220 commit 20c2f03ba55663dd3aebecb8558b8f2c36e1651f
Showing 3 changed files with 83 additions and 66 deletions.
@@ -0,0 +1,10 @@
root: true
extends: semistandard
rules:
indent:
- error
- 4
camelcase: off
padded-blocks: off
operator-linebreak: off
no-throw-literal: off
@@ -1,72 +1,78 @@
{
"author": "Andrew Lunny <alunny@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 <alunny@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": "dev@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": "dev@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"
}
]
}
@@ -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');
};

0 comments on commit 20c2f03

Please sign in to comment.