mirror of
https://github.com/apache/cordova-android.git
synced 2026-05-30 00:00:04 +08:00
Lint JS files w/out extension too (#453)
Prior to this change, JS files without extension had not been linted. To match them, we need a combination of positive and negative globbing that does not mix well with the existing file selection for linting. Thus, we use npm-run-all to run two ESLint invocations unconditionally in sequence while still preserving the error code. * Lint JS w/out extension too * Fix newly surfaced linting errors * Make use of npm-run-all for test script too
This commit is contained in:
committed by
GitHub
parent
2c3db19310
commit
393dad6349
+6
-6
@@ -23,12 +23,12 @@ var ConfigParser = require('cordova-common').ConfigParser;
|
||||
var Api = require('./templates/cordova/Api');
|
||||
|
||||
var argv = require('nopt')({
|
||||
'help' : Boolean,
|
||||
'cli' : Boolean,
|
||||
'shared' : Boolean,
|
||||
'link' : Boolean,
|
||||
'activity-name' : [String, undefined]
|
||||
}, { 'd' : '--verbose' });
|
||||
'help': Boolean,
|
||||
'cli': Boolean,
|
||||
'shared': Boolean,
|
||||
'link': Boolean,
|
||||
'activity-name': [String, undefined]
|
||||
}, { 'd': '--verbose' });
|
||||
|
||||
if (argv.help || argv.argv.remain.length === 0) {
|
||||
console.log('Usage: ' + path.relative(process.cwd(), path.join(__dirname, 'create')) + ' <path_to_new_project> <package_name> <project_name> [<template_path>] [--activity-name <activity_name>] [--link]');
|
||||
|
||||
Reference in New Issue
Block a user