CB-12895: ignoring cordova.js for eslint & removing comments and references to jshint
diff --git a/.eslintignore b/.eslintignore
index 065022a..4f2b5af 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -1,3 +1,4 @@
**/dummer.js
**/faultyPlugin.js
-**/dummyplugin.js
\ No newline at end of file
+**/dummyplugin.js
+template/www/cordova.js
\ No newline at end of file
diff --git a/spec/unit/MSBuildTools.spec.js b/spec/unit/MSBuildTools.spec.js
index 872c480..b610259 100644
--- a/spec/unit/MSBuildTools.spec.js
+++ b/spec/unit/MSBuildTools.spec.js
@@ -149,7 +149,6 @@
});
describe('getAvailableUAPVersions method', function () {
- /* jshint -W069 */
var availableVersions = ['10.0.10030.0', '10.0.10166.0', '10.0.10078.0'];
var shellTest, shellLs;
var programFilesx86Orig = process.env['ProgramFiles(x86)'];
diff --git a/spec/unit/pluginHandler/common.spec.js b/spec/unit/pluginHandler/common.spec.js
index bd027b7..ed2280b 100644
--- a/spec/unit/pluginHandler/common.spec.js
+++ b/spec/unit/pluginHandler/common.spec.js
@@ -16,8 +16,6 @@
*
*/
-/* jshint laxcomma:true */
-
var rewire = require('rewire');
var common = rewire('../../../template/cordova/lib/PluginHandler');
var path = require('path');
diff --git a/template/cordova/lib/ConfigParser.js b/template/cordova/lib/ConfigParser.js
index 8c56908..4a50bfb 100644
--- a/template/cordova/lib/ConfigParser.js
+++ b/template/cordova/lib/ConfigParser.js
@@ -17,8 +17,6 @@
under the License.
*/
-/* jshint sub:true */
-
var util = require('util');
var Version = require('./Version');
var ConfigParser = require('cordova-common').ConfigParser;
diff --git a/template/cordova/lib/MSBuildTools.js b/template/cordova/lib/MSBuildTools.js
index d706831..b54ed05 100644
--- a/template/cordova/lib/MSBuildTools.js
+++ b/template/cordova/lib/MSBuildTools.js
@@ -156,7 +156,6 @@
/// returns an array of available UAP Versions
module.exports.getAvailableUAPVersions = function () {
- /* jshint -W069 */
var programFilesFolder = process.env['ProgramFiles(x86)'] || process.env['ProgramFiles'];
// No Program Files folder found, so we won't be able to find UAP SDK
if (!programFilesFolder) return [];
@@ -182,7 +181,7 @@
/**
* Lists all VS 2017+ instances dirs in ProgramData
- *
+ *
* @return {String[]} List of paths to all VS2017+ instances
*/
function getWillowProgDataPaths () {
@@ -209,7 +208,7 @@
/**
* Lists all installed VS 2017+ versions
- *
+ *
* @return {Object[]} List of all VS 2017+ versions
*/
module.exports.getWillowInstallations = function () {
diff --git a/template/cordova/lib/PluginHandler.js b/template/cordova/lib/PluginHandler.js
index f393528..2231d46 100644
--- a/template/cordova/lib/PluginHandler.js
+++ b/template/cordova/lib/PluginHandler.js
@@ -17,8 +17,6 @@
*
*/
-/* jshint sub:true */
-
var fs = require('fs');
var path = require('path');
var shell = require('shelljs');
diff --git a/template/cordova/lib/deployment.js b/template/cordova/lib/deployment.js
index 0cb0194..080f936 100644
--- a/template/cordova/lib/deployment.js
+++ b/template/cordova/lib/deployment.js
@@ -17,8 +17,6 @@
under the License.
*/
-/* jshint -W069 */
-
var Q = require('q');
var fs = require('fs');
var path = require('path');
diff --git a/template/cordova/lib/prepare.js b/template/cordova/lib/prepare.js
index eca6d58..e16b5de 100644
--- a/template/cordova/lib/prepare.js
+++ b/template/cordova/lib/prepare.js
@@ -531,7 +531,6 @@
function checkThatExtensionsAreNotMixed () {
for (var target in extensionsUsed) {
- /* jshint loopfunc: true */
if (extensionsUsed.hasOwnProperty(target)) {
var extensionsUsedForTarget = extensionsUsed[target];