Miscellaneous lint fixes (#21116)

This commit is contained in:
Andy
2017-10-30 11:05:43 -07:00
committed by GitHub
parent 343d124ab1
commit 3f7bbeaa51
8 changed files with 43 additions and 89 deletions
-3
View File
@@ -731,9 +731,6 @@ declare namespace adone {
*/
creationData(): DatetimeCreationData;
/**
*
*/
parsingFlags(): DatetimeParsingFlags;
/**
-36
View File
@@ -26081,8 +26081,6 @@ interface IgNumericEditor {
*/
toUpper?: any;
/**
*/
textMode?: any;
/**
@@ -26636,8 +26634,6 @@ interface IgCurrencyEditor {
*/
toUpper?: any;
/**
*/
textMode?: any;
/**
@@ -27068,8 +27064,6 @@ interface IgPercentEditor {
*/
toUpper?: any;
/**
*/
textMode?: any;
/**
@@ -27429,8 +27423,6 @@ interface IgMaskEditor {
*/
dropDownOnReadOnly?: boolean;
/**
*/
textMode?: any;
/**
@@ -27928,8 +27920,6 @@ interface IgDateEditor {
*/
dropDownOrientation?: string;
/**
*/
textMode?: any;
/**
@@ -28450,8 +28440,6 @@ interface IgDatePicker {
*/
dropDownOrientation?: string;
/**
*/
textMode?: any;
/**
@@ -30868,12 +30856,8 @@ interface JQuery {
*/
igNumericEditor(optionLiteral: 'option', optionName: "toUpper", optionValue: any): void;
/**
*/
igNumericEditor(optionLiteral: 'option', optionName: "textMode"): any;
/**
*/
igNumericEditor(optionLiteral: 'option', optionName: "textMode", optionValue: any): void;
/**
@@ -31777,12 +31761,8 @@ interface JQuery {
*/
igCurrencyEditor(optionLiteral: 'option', optionName: "toUpper", optionValue: any): void;
/**
*/
igCurrencyEditor(optionLiteral: 'option', optionName: "textMode"): any;
/**
*/
igCurrencyEditor(optionLiteral: 'option', optionName: "textMode", optionValue: any): void;
/**
@@ -32563,12 +32543,8 @@ interface JQuery {
*/
igPercentEditor(optionLiteral: 'option', optionName: "toUpper", optionValue: any): void;
/**
*/
igPercentEditor(optionLiteral: 'option', optionName: "textMode"): any;
/**
*/
igPercentEditor(optionLiteral: 'option', optionName: "textMode", optionValue: any): void;
/**
@@ -33206,12 +33182,8 @@ interface JQuery {
*/
igMaskEditor(optionLiteral: 'option', optionName: "dropDownOnReadOnly", optionValue: boolean): void;
/**
*/
igMaskEditor(optionLiteral: 'option', optionName: "textMode"): any;
/**
*/
igMaskEditor(optionLiteral: 'option', optionName: "textMode", optionValue: any): void;
/**
@@ -34144,12 +34116,8 @@ interface JQuery {
*/
igDateEditor(optionLiteral: 'option', optionName: "dropDownOrientation", optionValue: string): void;
/**
*/
igDateEditor(optionLiteral: 'option', optionName: "textMode"): any;
/**
*/
igDateEditor(optionLiteral: 'option', optionName: "textMode", optionValue: any): void;
/**
@@ -35092,12 +35060,8 @@ interface JQuery {
*/
igDatePicker(optionLiteral: 'option', optionName: "dropDownOrientation", optionValue: string): void;
/**
*/
igDatePicker(optionLiteral: 'option', optionName: "textMode"): any;
/**
*/
igDatePicker(optionLiteral: 'option', optionName: "textMode", optionValue: any): void;
/**
+6
View File
@@ -0,0 +1,6 @@
{
"private": true,
"dependencies": {
"chalk": "^2.2.0"
}
}
+17 -16
View File
@@ -2215,8 +2215,8 @@ function test_hide() {
$("p").hide("slow");
});
$("#hidr").click(function () {
$("span:last-child").hide("fast", function () {
$(this).prev().hide("fast", arguments.callee);
$("span:last-child").hide("fast", function f() {
$(this).prev().hide("fast", f);
});
});
$("#showr").click(function () {
@@ -3126,20 +3126,21 @@ function test_map() {
}).get().join(", "));
var mappedItems = $("li").map(function (index) {
var replacement:any = $("<li>").text($(this).text()).get(0);
if (index === 0) {
// Make the first item all caps
$(replacement).text($(replacement).text().toUpperCase());
} else if (index === 1 || index === 3) {
// Delete the second and fourth items
replacement = null;
} else if (index === 2) {
// Make two of the third item and add some text
replacement = [replacement, $("<li>").get(0)];
$(replacement[0]).append("<b> - A</b>");
$(replacement[1]).append("Extra <b> - B</b>");
switch (index) {
case 0:
// Make the first item all caps
$(replacement).text($(replacement).text().toUpperCase());
break;
case 1:
case 3:
// Delete the second and fourth items
replacement = null;
break;
case 2:
// Make two of the third item and add some text
replacement = [replacement, $("<li>").get(0)];
$(replacement[0]).append("<b> - A</b>");
$(replacement[1]).append("Extra <b> - B</b>");
}
// Replacement will be a dom element, null,
+17 -16
View File
@@ -2215,8 +2215,8 @@ function test_hide() {
$("p").hide("slow");
});
$("#hidr").click(function () {
$("span:last-child").hide("fast", function () {
$(this).prev().hide("fast", arguments.callee);
$("span:last-child").hide("fast", function f() {
$(this).prev().hide("fast", f);
});
});
$("#showr").click(function () {
@@ -3126,20 +3126,21 @@ function test_map() {
}).get().join(", "));
var mappedItems = $("li").map(function (index) {
var replacement:any = $("<li>").text($(this).text()).get(0);
if (index === 0) {
// Make the first item all caps
$(replacement).text($(replacement).text().toUpperCase());
} else if (index === 1 || index === 3) {
// Delete the second and fourth items
replacement = null;
} else if (index === 2) {
// Make two of the third item and add some text
replacement = [replacement, $("<li>").get(0)];
$(replacement[0]).append("<b> - A</b>");
$(replacement[1]).append("Extra <b> - B</b>");
switch (index) {
case 0:
// Make the first item all caps
$(replacement).text($(replacement).text().toUpperCase());
break;
case 1:
case 3:
// Delete the second and fourth items
replacement = null;
break;
case 2:
// Make two of the third item and add some text
replacement = [replacement, $("<li>").get(0)];
$(replacement[0]).append("<b> - A</b>");
$(replacement[1]).append("Extra <b> - B</b>");
}
// Replacement will be a dom element, null,
+3 -1
View File
@@ -3,6 +3,8 @@
"rules": {
// TODOs
"no-mergeable-namespace": false,
"no-unnecsesary-class": false
"no-redundant-jsdoc": false,
"no-redundant-jsdoc-2": false,
"no-unnecessary-class": false
}
}
-2
View File
@@ -85,7 +85,6 @@ declare class ClusterIcon extends google.maps.OverlayView {
/**
* A cluster icon.
*
* @extends google.maps.OverlayView
* @param cluster The cluster with which the icon is to be associated.
* @param [styles] An array of {@link ClusterIconStyle} defining the cluster icons
* to use for various cluster sizes.
@@ -378,7 +377,6 @@ interface MarkerClustererOptions {
declare class MarkerClusterer extends google.maps.OverlayView {
/**
* Creates a MarkerClusterer object with the options specified in {@link MarkerClustererOptions}.
* @extends google.maps.OverlayView
* @param map The Google map to attach to.
* @param [markers] The markers to be added to the cluster.
* @param [options] The optional parameters.
-15
View File
@@ -14,9 +14,6 @@ export namespace pre {
*/
function context(): RequestHandler;
/**
*
*/
function dedupeSlashes(): RequestHandler;
/**
@@ -73,9 +70,6 @@ export interface AuditLoggerOptions {
*/
printLog?: boolean;
/**
*
*/
body?: boolean;
}
@@ -165,14 +159,8 @@ export interface BodyParserOptions {
*/
rejectUnknown?: boolean;
/**
*
*/
reviver?: any;
/**
*
*/
maxFieldsSize?: number;
}
@@ -342,9 +330,6 @@ export interface MetricsCallback {
*/
err: Error;
/**
*
*/
metrics: MetricsCallbackOptions;
req: Request;