diff --git a/types/angular/angular-tests.ts b/types/angular/angular-tests.ts index 88a59bdd2a..15d4d6a137 100644 --- a/types/angular/angular-tests.ts +++ b/types/angular/angular-tests.ts @@ -6,8 +6,6 @@ * License: MIT */ -/* tslint:disable:no-empty no-shadowed-variable */ - class AuthService { /** * Holds all the requests which failed due to 401 response, diff --git a/types/big.js/index.d.ts b/types/big.js/index.d.ts index cf197e8cfc..eac22f59c7 100644 --- a/types/big.js/index.d.ts +++ b/types/big.js/index.d.ts @@ -280,11 +280,9 @@ export interface Big { export const Big: BigConstructor; // Helpers to allow referencing Big and BigConstructor from inside the global declaration without creating a self reference -/* tslint:disable:strict-export-declare-modifiers */ -type Big_ = Big; -type BigConstructor_ = BigConstructor; -type BigSource_ = BigSource; -/* tslint:enable:strict-export-declare-modifiers */ +export type Big_ = Big; +export type BigConstructor_ = BigConstructor; +export type BigSource_ = BigSource; declare global { namespace BigJs { diff --git a/types/bootstrap-notify/index.d.ts b/types/bootstrap-notify/index.d.ts index 0517b62cf8..540f200d9c 100644 --- a/types/bootstrap-notify/index.d.ts +++ b/types/bootstrap-notify/index.d.ts @@ -6,10 +6,7 @@ /// -/* tslint:disable: interface-name no-any */ - interface JQueryStatic { - /* tslint:enable: interface-name */ notify(message: string): NotifyReturn; notify(opts: NotifyOptions, settings?: NotifySettings): NotifyReturn; notifyDefaults(settings: NotifySettings): void; diff --git a/types/bull/index.d.ts b/types/bull/index.d.ts index 1e9e3b55bc..810377184e 100644 --- a/types/bull/index.d.ts +++ b/types/bull/index.d.ts @@ -16,12 +16,10 @@ import * as Promise from "bluebird"; * Everytime the same queue is instantiated it tries to process all the old jobs that may exist from a previous unfinished session. */ declare const Bull: { - // tslint:disable:unified-signatures (queueName: string, opts?: Bull.QueueOptions): Bull.Queue; - (queueName: string, url?: string): Bull.Queue; + (queueName: string, url?: string): Bull.Queue; // tslint:disable-line unified-signatures new (queueName: string, opts?: Bull.QueueOptions): Bull.Queue; - new (queueName: string, url?: string): Bull.Queue; - // tslint:enable:unified-signatures + new (queueName: string, url?: string): Bull.Queue; // tslint:disable-line unified-signatures }; declare namespace Bull { @@ -520,8 +518,6 @@ declare namespace Bull { */ clean(grace: number, status?: JobStatus, limit?: number): Promise; - // tslint:disable:unified-signatures - /** * Listens to queue events */ @@ -566,7 +562,7 @@ declare namespace Bull { /** * The queue has been resumed */ - on(event: 'resumed', callback: EventCallback): this; + on(event: 'resumed', callback: EventCallback): this; // tslint:disable-line unified-signatures /** * Old jobs have been cleaned from the queue. @@ -575,8 +571,6 @@ declare namespace Bull { * @see Queue#clean() for details */ on(event: 'cleaned', callback: CleanedEventCallback): this; - - // tslint:enable:unified-signatures } type EventCallback = () => void; diff --git a/types/bunyan/index.d.ts b/types/bunyan/index.d.ts index 0a0c648220..4ee972d29c 100644 --- a/types/bunyan/index.d.ts +++ b/types/bunyan/index.d.ts @@ -24,8 +24,6 @@ declare class Logger extends EventEmitter { fields: any; src: boolean; - /* tslint:disable:unified-signatures */ - /** * Returns a boolean: is the `trace` level enabled? * @@ -199,8 +197,6 @@ declare class Logger extends EventEmitter { * Uses `util.format` for msg formatting. */ fatal(format: any, ...params: any[]): void; - - /* tslint:enable:unified-signatures */ } declare namespace Logger { diff --git a/types/bunyan/tslint.json b/types/bunyan/tslint.json index 09f94cd344..2204f23ff3 100644 --- a/types/bunyan/tslint.json +++ b/types/bunyan/tslint.json @@ -2,6 +2,7 @@ "extends": "dtslint/dt.json", "rules": { // ban-types needs to be disabled to support TypeScript <2.2 - "ban-types": false + "ban-types": false, + "unified-signatures": false } } diff --git a/types/convert-source-map/convert-source-map-tests.ts b/types/convert-source-map/convert-source-map-tests.ts index c591f124c6..a95138d657 100644 --- a/types/convert-source-map/convert-source-map-tests.ts +++ b/types/convert-source-map/convert-source-map-tests.ts @@ -1,12 +1,12 @@ import convert = require("convert-source-map"); -// tslint:disable:max-line-length - const json = convert + // tslint:disable-next-line max-line-length .fromComment('//@ sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9vLmpzIiwic291cmNlcyI6WyJjb25zb2xlLmxvZyhcImhpXCIpOyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIvIn0=') .toJSON(); const modified = convert + // tslint:disable-next-line max-line-length .fromComment('//@ sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9vLmpzIiwic291cmNlcyI6WyJjb25zb2xlLmxvZyhcImhpXCIpOyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIvIn0=') .setProperty('sources', ['CONSOLE.LOG("HI");']) .toJSON(); diff --git a/types/d3-selection-multi/d3-selection-multi-tests.ts b/types/d3-selection-multi/d3-selection-multi-tests.ts index f40c3723f2..4f835e368b 100644 --- a/types/d3-selection-multi/d3-selection-multi-tests.ts +++ b/types/d3-selection-multi/d3-selection-multi-tests.ts @@ -1,4 +1,3 @@ -// tslint:disable:object-literal-shorthand /** * Typescript definition tests for d3/d3-selection-multi module * @@ -28,7 +27,7 @@ selection = selection.attrs({ foo: () => 1, bar: (d) => d, baz: (d, i) => i !== 0, - bat: function() { + bat() { return this.href; }, }); diff --git a/types/ej.web.all/ej.web.all-tests.ts b/types/ej.web.all/ej.web.all-tests.ts index 9a1b418da0..d03f9ebf39 100644 --- a/types/ej.web.all/ej.web.all-tests.ts +++ b/types/ej.web.all/ej.web.all-tests.ts @@ -1,7 +1,3 @@ -/* tslint:disable */ -/* tslint:disable */ - - module AccordionComponent { $(function () { var sample = new ej.Accordion($("#basicAccordion"), { @@ -22,7 +18,7 @@ module AccordionComponent { }); } - + module AutocompleteComponent{ var carList = [ @@ -46,15 +42,15 @@ module AutocompleteComponent{ "Triumph Spitfire", "Toyota 2000GT", "Volvo P1800", "Volkswagen Shirako" ]; - $(function () { - var autocompleteInstance =new ej.Autocomplete($("#selectCar"), { + $(function () { + var autocompleteInstance =new ej.Autocomplete($("#selectCar"), { width: "100%", watermarkText: "Select a car", dataSource: carList, enableAutoFill: true, showPopupButton: true, multiSelectMode: "delimiter" - }); + }); }); } @@ -197,7 +193,7 @@ module ChartComponent { range: { min: 25, max: 50, interval: 5 }, labelFormat: "{value}%", title: { text: "Efficiency" }, - + }, commonSeriesOptions: { @@ -212,28 +208,28 @@ module ChartComponent { }, visible: true }, - border : {width: 2} - }, - series: + border : {width: 2} + }, + series: [ { - points: [{ x: 2005, y: 28 }, { x: 2006, y: 25 },{ x: 2007, y: 26 }, { x: 2008, y: 27 }, - { x: 2009, y: 32 }, { x: 2010, y: 35 }, { x: 2011, y: 30 }], + points: [{ x: 2005, y: 28 }, { x: 2006, y: 25 },{ x: 2007, y: 26 }, { x: 2008, y: 27 }, + { x: 2009, y: 32 }, { x: 2010, y: 35 }, { x: 2011, y: 30 }], name: 'India' - }, + }, { - points: [{ x: 2005, y: 31 }, { x: 2006, y: 28 },{ x: 2007, y: 30 }, { x: 2008, y: 36 }, - { x: 2009, y: 36 }, { x: 2010, y: 39 }, { x: 2011, y: 37 }], + points: [{ x: 2005, y: 31 }, { x: 2006, y: 28 },{ x: 2007, y: 30 }, { x: 2008, y: 36 }, + { x: 2009, y: 36 }, { x: 2010, y: 39 }, { x: 2011, y: 37 }], name: 'Germany' }, { - points: [{ x: 2005, y: 36 }, { x: 2006, y: 32 },{ x: 2007, y: 34 }, { x: 2008, y: 41 }, - { x: 2009, y: 42 }, { x: 2010, y: 42 }, { x: 2011, y: 43 }], + points: [{ x: 2005, y: 36 }, { x: 2006, y: 32 },{ x: 2007, y: 34 }, { x: 2008, y: 41 }, + { x: 2009, y: 42 }, { x: 2010, y: 42 }, { x: 2011, y: 43 }], name: 'England' - }, + }, { - points: [{ x: 2005, y: 39 }, { x: 2006, y: 36 },{ x: 2007, y: 40 }, { x: 2008, y: 44 }, - { x: 2009, y: 45 }, { x: 2010, y: 48 }, { x: 2011, y: 46 }], + points: [{ x: 2005, y: 39 }, { x: 2006, y: 36 },{ x: 2007, y: 40 }, { x: 2008, y: 44 }, + { x: 2009, y: 45 }, { x: 2010, y: 48 }, { x: 2011, y: 46 }], name: 'France' } ], @@ -300,7 +296,7 @@ module ChartComponent { theme = "flatlight"; break; } - sender.model.theme = theme; + sender.model.theme = theme; } }, title: { text: 'Efficiency of oil-fired power production' }, @@ -361,7 +357,7 @@ module circulargaugecomponent { backgroundColor: "#f5b43f", border: { color: "#f5b43f" } }] - }] + }] }); }); } @@ -378,7 +374,7 @@ module ColorPickerComponent { } - + module ComboBoxComponent{ var BikeList = [ @@ -387,14 +383,14 @@ module ComboBoxComponent{ { empid: "bk7", text: "Fazzer" }, { empid: "bk8", text: "FZ-S" }, { empid: "bk9", text: "Pulsar" }, { empid: "bk10", text: "Shine" }, { empid: "bk11", text: "R15" }, { empid: "bk12", text: "Unicorn" } ]; - $(function () { - var comboboxInstance =new ej.ComboBox($("#selectCar"), { + $(function () { + var comboboxInstance =new ej.ComboBox($("#selectCar"), { width: "100%", placeholder: "Select a Bike", fields: { text: "text", value: "empid" }, dataSource: BikeList, autofill: true - }); + }); }); } @@ -480,7 +476,7 @@ $(function () { createConnector({ name: "connector6", sourceNode: "Project", targetNode: "Resources", labels: [createLabel({ "text": "No" })] }) ] }); - + }); function createNode(option: ej.datavisualization.Diagram.Node) { @@ -505,7 +501,7 @@ function createLabel(options : any) { return options; } - + module DialogComponent { $(function () { @@ -555,7 +551,7 @@ module digitalgaugecomponent { } - + @@ -575,12 +571,12 @@ module DropDownListComponent { enableFilterSearch: true, caseSensitiveSearch: true, enableIncrementalSearch: true, - enablePopupResize: true, + enablePopupResize: true, delimiterChar: ";", multiSelectMode: ej.MultiSelectMode.Delimiter, maxPopupHeight: "300px", - minPopupHeight: "150px", - maxPopupWidth: "500px", + minPopupHeight: "150px", + maxPopupWidth: "500px", minPopupWidth: "350px", showCheckbox: true, showRoundedCorner: true @@ -616,7 +612,7 @@ module GanttComponent { dataSource: (window).projectData, allowColumnResize: true, allowSorting: true, - allowSelection: true, + allowSelection: true, enableContextMenu: true, taskIdMapping: "taskID", allowDragAndDrop: true, @@ -657,7 +653,7 @@ module GanttComponent { treeColumnIndex: 1, isResponsive: true, }); -}); +}); } @@ -699,7 +695,7 @@ module GridComponent { -var columns = ["Vegie-spread", "Tofuaa", "Alice Mutton", "Konbu", "Fltemysost"] +var columns = ["Vegie-spread", "Tofuaa", "Alice Mutton", "Konbu", "Fl�temysost"] var itemSource: any[] = []; for (var i = 0; i < columns.length; i++) { for (var j = 0; j < 6; j++) { @@ -773,7 +769,7 @@ module KanbanComponent { }); } - + module lineargaugecomponent { @@ -799,14 +795,14 @@ module lineargaugecomponent { backgroundColor: "#E94649", border: { color: "#E94649" }, startWidth: 4, endWidth: 4 }] - }] + }] }); }); } - - + + module ListBoxComponent { $(function () { @@ -816,12 +812,12 @@ module ListBoxComponent { }); } - + module ListviewComponent { $(function () { var listviewInstance = new ej.ListView($("#defaultlistview"), { - enableCheckMark: true, + enableCheckMark: true, width: 400 }); }); @@ -863,7 +859,7 @@ var world_map= { "type": "Feature", "properties": { "admin": "Switzerland", "name": "Switzerland", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[9.594226108446346, 47.525058091820256], [9.632931756232974, 47.347601223329974], [9.479969516649019, 47.102809963563367], [9.932448357796657, 46.920728054382948], [10.442701450246627, 46.893546250997424], [10.36337812667861, 46.483571275409851], [9.922836541390378, 46.314899400409182], [9.182881707403054, 46.440214748716976], [8.966305779667804, 46.036931871111186], [8.489952426801322, 46.005150865251672], [8.316629672894377, 46.163642483090847], [7.755992058959832, 45.824490057959302], [7.273850945676655, 45.776947740250769], [6.843592970414504, 45.991146552100595], [6.500099724970424, 46.429672756529428], [6.022609490593537, 46.272989813820466], [6.037388950229, 46.725778713561859], [6.768713820023605, 47.287708238303686], [6.736571079138058, 47.541801255882838], [7.192202182655505, 47.449765529971003], [7.466759067422228, 47.620581976911794], [8.31730146651415, 47.613579820336255], [8.522611932009765, 47.830827541691285], [9.594226108446346, 47.525058091820256]]] } }, { "type": "Feature", "properties": { "admin": "Chile", "name": "Chile", "continent": "South America" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[-68.634010227583147, -52.636370458874353], [-68.633349999999879, -54.8695], [-67.56244, -54.87001], [-66.95992, -54.89681], [-67.291029999999878, -55.30124], [-68.148629999999841, -55.61183], [-68.639990810811796, -55.580017999086877], [-69.2321, -55.49906], [-69.95809, -55.19843], [-71.00568, -55.05383], [-72.2639, -54.49514], [-73.2852, -53.957519999999874], [-74.66253, -52.83749], [-73.8381, -53.04743], [-72.43418, -53.7154], [-71.10773, -54.07433], [-70.591779999999787, -53.61583], [-70.26748, -52.93123], [-69.345649999999878, -52.5183], [-68.634010227583147, -52.636370458874353]]], [[[-68.219913092711224, -21.49434661223183], [-67.828179897722634, -22.872918796482178], [-67.106673550063604, -22.735924574476392], [-66.985233934177629, -22.986348565362825], [-67.328442959244128, -24.025303236590908], [-68.417652960876111, -24.518554782816874], [-68.386001146097342, -26.185016371365229], [-68.594799770772667, -26.50690886811126], [-68.295541551370391, -26.899339694935787], [-69.001234910748266, -27.521213881136127], [-69.656130337183143, -28.459141127233686], [-70.013550381129861, -29.367922865518544], [-69.919008348251921, -30.336339206668306], [-70.535068935819439, -31.365010267870279], [-70.074399380153622, -33.09120981214803], [-69.814776984319209, -33.273886000299839], [-69.817309129501453, -34.193571465798279], [-70.388049485949082, -35.169687595359441], [-70.364769253201658, -36.005088799789931], [-71.121880662709771, -36.65812387466233], [-71.118625047475419, -37.576827487947192], [-70.814664272734703, -38.552995293940732], [-71.413516608349042, -38.916022230791107], [-71.680761277946445, -39.808164157878061], [-71.915734015577542, -40.832339369470716], [-71.746803758415453, -42.051386407235988], [-72.148898078078517, -42.254888197601375], [-71.915423956983901, -43.408564548517404], [-71.464056159130493, -43.787611179378324], [-71.793622606071935, -44.207172133156099], [-71.329800788036195, -44.407521661151677], [-71.222778896759721, -44.784242852559409], [-71.659315558545316, -44.973688653341434], [-71.552009446891233, -45.560732924177117], [-71.917258470330196, -46.884838148791786], [-72.44735531278026, -47.738532810253517], [-72.331160854771937, -48.244238376661819], [-72.648247443314929, -48.878618259476774], [-73.415435757120022, -49.318436374712952], [-73.328050910114456, -50.378785088909865], [-72.975746832964617, -50.741450290734299], [-72.309973517532342, -50.677009779666342], [-72.329403856074023, -51.425956312872394], [-71.914803839796321, -52.009022305865912], [-69.498362189396076, -52.142760912637236], [-68.571545376241332, -52.299443855346247], [-69.461284349226617, -52.291950772663924], [-69.94277950710611, -52.537930590373243], [-70.8451016913545, -52.899200528525711], [-71.006332160105217, -53.833252042201345], [-71.429794684520928, -53.856454760300373], [-72.557942877884855, -53.531410001184447], [-73.702756720662862, -52.835069268607249], [-73.702756720662862, -52.835070076051487], [-74.946763475225154, -52.262753588419017], [-75.260026007778507, -51.62935475037321], [-74.976632453089806, -51.043395684615675], [-75.47975419788348, -50.378371677451547], [-75.608015102831942, -48.673772881871784], [-75.182769741502128, -47.711919447623153], [-74.126580980104677, -46.939253431995084], [-75.644395311165439, -46.647643324572016], [-74.69215369332305, -45.76397633238097], [-74.351709357384252, -44.10304412208788], [-73.240356004515192, -44.454960625995611], [-72.717803921179765, -42.383355808278985], [-73.388899909138232, -42.117532240569567], [-73.701335618774834, -43.365776462579738], [-74.33194312203257, -43.224958184584395], [-74.017957119427152, -41.794812920906828], [-73.677099372029943, -39.942212823243111], [-73.217592536090663, -39.258688653318508], [-73.505559455037044, -38.282882582351064], [-73.588060879191076, -37.156284681956016], [-73.166717088499283, -37.123780206044351], [-72.553136969681717, -35.508840020491022], [-71.861732143832555, -33.909092706031522], [-71.438450486929895, -32.418899428030819], [-71.668720669222424, -30.920644626592516], [-71.370082567007714, -30.095682061484997], [-71.48989437527645, -28.861442152625909], [-70.905123867461569, -27.640379734001193], [-70.724953986275963, -25.705924167587209], [-70.403965827095035, -23.628996677344542], [-70.091245897080668, -21.393319187101223], [-70.164419725205974, -19.756468194256183], [-70.372572394477714, -18.347975355708879], [-69.858443569605797, -18.092693780187027], [-69.590423753523979, -17.580011895419286], [-69.100246955019401, -18.260125420812653], [-68.966818406841824, -18.981683444904089], [-68.442225104430918, -19.405068454671419], [-68.757167121033703, -20.37265797290447], [-68.219913092711224, -21.49434661223183]]]] } }, { "type": "Feature", "properties": { "admin": "China", "name": "China", "continent": "Asia" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[110.339187860151526, 18.678395087147603], [109.475209588663702, 18.19770091396861], [108.655207961056135, 18.507681993071397], [108.626217482540426, 19.367887885001974], [109.119055617308007, 19.821038519769385], [110.211598748822837, 20.101253973872073], [110.786550734502228, 20.077534491450077], [111.01005130416462, 19.695929877190732], [110.570646600386794, 19.255879218009305], [110.339187860151526, 18.678395087147603]]], [[[127.657407261262378, 49.760270494172929], [129.397817824420429, 49.440600084015429], [130.58229332898236, 48.729687404976112], [130.987281528853828, 47.790132351261391], [132.506671991099495, 47.788969631534876], [133.373595819228001, 48.183441677434914], [135.026311476786702, 48.478229885443902], [134.500813836810607, 47.578439846377833], [134.112362095272601, 47.212467352886719], [133.76964399631288, 46.116926988299056], [133.097126906466428, 45.14406647397216], [131.883454217659562, 45.32116160743643], [131.025212030156069, 44.967953192721573], [131.288555129115537, 44.111519680348252], [131.144687941614848, 42.929989732426932], [130.633866408409801, 42.903014634770543], [130.640015903852429, 42.39500946712527], [129.994267205933227, 42.985386867843793], [129.596668735879462, 42.424981797854592], [128.05221520397231, 41.994284572917984], [128.208433058790717, 41.466771552082534], [127.343782993683021, 41.503151760415953], [126.869083286649854, 41.816569322266155], [126.18204511932943, 41.107336127276362], [125.079941847840587, 40.569823716792449], [124.265624627785314, 39.928493353834135], [122.86757042856101, 39.637787583976255], [122.131387974130917, 39.170451768544623], [121.054554478032856, 38.89747101496291], [121.585994907722466, 39.360853583324136], [121.376757033372641, 39.750261338859524], [122.168595005381007, 40.422442531896046], [121.640358514493528, 40.946389878903304], [120.768628778161954, 40.593388169917596], [119.639602085449056, 39.898055935214209], [119.023463983233015, 39.252333075511096], [118.042748651197897, 39.204273993479674], [117.532702264477052, 38.73763580988409], [118.05969852098967, 38.061475531561051], [118.878149855628351, 37.897325344385898], [118.911636183753501, 37.448463853498723], [119.702802362142037, 37.156388658185072], [120.823457472823648, 37.870427761377968], [121.711258579597938, 37.481123358707165], [122.357937453298462, 37.454484157860684], [122.519994744965814, 36.930614325501828], [121.104163853033029, 36.651329047180432], [120.63700890511457, 36.111439520811125], [119.66456180224607, 35.609790554337728], [119.151208123858567, 34.909859117160458], [120.227524855633717, 34.360331936168613], [120.620369093916565, 33.37672272392512], [121.229014113450219, 32.460318711877186], [121.908145786630044, 31.692174384074683], [121.891919386890336, 30.949351508095098], [121.264257440273298, 30.676267401648712], [121.503519321784722, 30.14291494396425], [122.092113885589086, 29.832520453403156], [121.93842817595305, 29.018022365834803], [121.684438511238469, 28.225512600206677], [121.125661248866436, 28.135673122667178], [120.395473260582307, 27.053206895449385], [119.585496860839555, 25.740780544532605], [118.656871372554519, 24.547390855400234], [117.281606479970833, 23.624501451099714], [115.890735304835118, 22.782873236578094], [114.763827345846209, 22.668074042241663], [114.152546828265656, 22.223760077396204], [113.806779819800752, 22.548339748621423], [113.241077915501592, 22.051367499270462], [111.843592157032447, 21.550493679281512], [110.78546552942413, 21.39714386645533], [110.444039341271662, 20.34103261970639], [109.88986128137357, 20.282457383703441], [109.627655063924635, 21.008227037026725], [109.864488153118316, 21.395050970947516], [108.522812941524421, 21.715212307211821], [108.050180291782979, 21.552379869060101], [107.043420037872636, 21.8118989120299], [106.567273390735352, 22.21820486092474], [106.725403273548466, 22.794267889898375], [105.811247186305209, 22.976892401617899], [105.329209425886631, 23.352063300056976], [104.476858351664475, 22.819150092046918], [103.504514601660503, 22.703756618739217], [102.706992222100155, 22.708795070887696], [102.170435825613552, 22.464753119389336], [101.652017856861576, 22.318198757409554], [101.803119744882906, 21.174366766845051], [101.27002566936001, 21.201651923095167], [101.180005324307558, 21.436572984294052], [101.150032993578236, 21.849984442629015], [100.416537713627349, 21.558839423096654], [99.983489211021549, 21.742936713136451], [99.240898878987196, 22.118314317304559], [99.53199222208741, 22.949038804612591], [98.898749220782804, 23.142722072842581], [98.66026248575578, 24.063286037690002], [97.604719679762027, 23.897404690033049], [97.724609002679131, 25.083637193293036], [98.671838006589212, 25.91870250091349], [98.712093947344556, 26.743535874940243], [98.682690057370507, 27.508812160750658], [98.246230910233351, 27.747221381129172], [97.91198774616943, 28.335945136014367], [97.327113885490007, 28.261582749946339], [96.248833449287829, 28.411030992134467], [96.586590610747521, 28.830979519154361], [96.117678664131006, 29.452802028922513], [95.404802280664626, 29.031716620392157], [94.565990431702929, 29.27743805593996], [93.413347609432662, 28.640629380807233], [92.503118931043616, 27.896876329046442], [91.696656528696693, 27.771741848251615], [91.258853794319876, 28.040614325466343], [90.730513950567797, 28.064953925075738], [90.015828891971182, 28.296438503527177], [89.475810174521158, 28.042758897406365], [88.814248488320573, 27.299315904239389], [88.730325962278528, 28.086864732367552], [88.120440708369941, 27.876541652939572], [86.954517043000635, 27.974261786403524], [85.823319940131526, 28.203575954698742], [85.011638218123053, 28.642773952747369], [84.23457970575015, 28.839893703724691], [83.89899295444674, 29.320226141877633], [83.337115106137176, 29.463731594352193], [82.327512648450877, 30.115268052688204], [81.525804477874786, 30.422716986608659], [81.111256138029276, 30.183480943313402], [79.721366815107118, 30.882714748654728], [78.738894484374001, 31.515906073527045], [78.458446486326025, 32.61816437431272], [79.176128777995544, 32.483779812137747], [79.208891636068543, 32.994394639613738], [78.811086460285722, 33.506198025032397], [78.912268914713209, 34.321936346975768], [77.83745079947461, 35.494009507787794], [76.192848341785705, 35.89840342868785], [75.896897414050173, 36.666806138651872], [75.158027785140987, 37.133030910789152], [74.980002475895404, 37.419990139305888], [74.829985792952144, 37.990007025701445], [74.864815708316783, 38.378846340481587], [74.25751427602269, 38.606506862943476], [73.928852166646394, 38.505815334622717], [73.675379266254836, 39.431236884105566], [73.960013055318427, 39.660008449861714], [73.822243686828315, 39.893973497063136], [74.776862420556043, 40.366425279291619], [75.467827996730719, 40.56207225194867], [76.526368035797432, 40.427946071935132], [76.90448449087711, 41.066485907549648], [78.187196893226044, 41.185315863604799], [78.543660923175253, 41.582242540038713], [80.119430373051401, 42.12394074153822], [80.259990268885318, 42.34999929459908], [80.180150180994374, 42.920067857426844], [80.866206496101213, 43.180362046881008], [79.966106398441426, 44.917516994804622], [81.947070753918084, 45.317027492853143], [82.458925815769035, 45.539649563166499], [83.180483839860543, 47.330031236350735], [85.164290399113213, 47.000955715516099], [85.720483839870667, 47.452969468773077], [85.76823286330837, 48.455750637396896], [86.59877648310335, 48.549181626980605], [87.359970330762692, 49.214980780629148], [87.751264276076668, 49.297197984405464], [88.013832228551678, 48.599462795600594], [88.854297723346747, 48.069081732773007], [90.280825636763893, 47.693549099307901], [90.970809360724957, 46.88814606382293], [90.585768263718307, 45.719716091487491], [90.945539585334316, 45.286073309910243], [92.133890822318222, 45.115075995456429], [93.480733677141316, 44.97547211362], [94.688928664125356, 44.352331854828456], [95.306875441471504, 44.241330878265458], [95.762454868556688, 43.319449164394619], [96.349395786527808, 42.725635280928643], [97.451757440177971, 42.74888967546007], [99.515817498779995, 42.524691473961688], [100.845865513108279, 42.663804429691417], [101.833040399179936, 42.51487295182627], [103.312278273534787, 41.907468166667613], [104.522281935649005, 41.90834666601662], [104.964993931093431, 41.597409572916334], [106.129315627061658, 42.134327704428891], [107.744772576937976, 42.481515814781908], [109.243595819131428, 42.519446316084149], [110.412103306115299, 42.871233628911014], [111.129682244920218, 43.406834011400171], [111.82958784388137, 43.743118394539486], [111.667737257943202, 44.073175767587706], [111.348376906379428, 44.457441718110047], [111.87330610560025, 45.102079372735112], [112.436062453258842, 45.01164561622425], [113.463906691544196, 44.808893134127111], [114.46033165899604, 45.339816799493875], [115.985096470200133, 45.727235012386004], [116.717868280098855, 46.38820241961524], [117.421701287914246, 46.67273285581421], [118.874325799638711, 46.805412095723646], [119.663269891438745, 46.692679958678944], [119.772823927897562, 47.048058783550132], [118.866574334794947, 47.747060044946195], [118.064142694166719, 48.06673045510373], [117.295507440257438, 47.697709052107385], [116.308952671373234, 47.853410142602812], [115.742837355615734, 47.726544501326273], [115.485282017073018, 48.135382595403442], [116.191802199367601, 49.134598090199056], [116.67880089728618, 49.888531399121398], [117.879244419426371, 49.510983384796944], [119.288460728025839, 50.142882798862033], [119.279365675942358, 50.582907619827282], [120.182049595216924, 51.64356639261802], [120.738191359541972, 51.964115302124547], [120.725789015791975, 52.516226304730814], [120.177088657716865, 52.753886216841195], [121.003084751470226, 53.251401068731226], [122.245747918792858, 53.431725979213681], [123.571506789240843, 53.458804429734627], [125.068211297710434, 53.161044826868832], [125.946348911646169, 52.792798570356936], [126.564399041856959, 51.784255479532689], [126.939156528837657, 51.353894151405896], [127.287455682484904, 50.739797268265434], [127.657407261262378, 49.760270494172929]]]] } }, - { "type": "Feature", "properties": { "admin": "Ivory Coast", "name": "Cte d'Ivoire", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-2.856125047202397, 4.994475816259508], [-3.311084357100071, 4.984295559098014], [-4.008819545904941, 5.179813340674314], [-4.64991736491791, 5.168263658057084], [-5.834496222344525, 4.993700669775135], [-6.528769090185845, 4.705087795425015], [-7.518941209330434, 4.338288479017307], [-7.712159389669749, 4.364565944837721], [-7.63536821128403, 5.188159084489455], [-7.53971513511176, 5.313345241716517], [-7.570152553731686, 5.707352199725903], [-7.993692592795879, 6.126189683451541], [-8.311347622094017, 6.193033148621081], [-8.602880214868618, 6.467564195171659], [-8.385451626000572, 6.911800645368742], [-8.485445522485348, 7.395207831243068], [-8.439298468448696, 7.686042792181736], [-8.280703497744936, 7.687179673692156], [-8.221792364932197, 8.123328762235571], [-8.299048631208562, 8.316443589710302], [-8.203498907900878, 8.455453192575446], [-7.832100389019186, 8.575704250518625], [-8.079113735374348, 9.376223863152033], [-8.309616461612249, 9.789531968622439], [-8.22933712404682, 10.129020290563897], [-8.029943610048617, 10.206534939001711], [-7.89958980959237, 10.297382106970824], [-7.622759161804808, 10.147236232946792], [-6.850506557635057, 10.138993841996237], [-6.666460944027547, 10.430810655148447], [-6.493965013037267, 10.411302801958268], [-6.205222947606429, 10.524060777219132], [-6.050452032892266, 10.096360785355442], [-5.816926235365286, 10.222554633012191], [-5.404341599946973, 10.370736802609144], [-4.954653286143098, 10.152713934769732], [-4.779883592131966, 9.821984768101741], [-4.330246954760383, 9.610834865757139], [-3.980449184576684, 9.862344061721698], [-3.511898972986272, 9.900326239456216], [-2.827496303712706, 9.642460842319775], [-2.56218950032624, 8.219627793811481], [-2.983584967450326, 7.379704901555511], [-3.244370083011261, 6.2504715031135], [-2.810701463217839, 5.389051215024109], [-2.856125047202397, 4.994475816259508]]] } }, + { "type": "Feature", "properties": { "admin": "Ivory Coast", "name": "C�te d'Ivoire", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-2.856125047202397, 4.994475816259508], [-3.311084357100071, 4.984295559098014], [-4.008819545904941, 5.179813340674314], [-4.64991736491791, 5.168263658057084], [-5.834496222344525, 4.993700669775135], [-6.528769090185845, 4.705087795425015], [-7.518941209330434, 4.338288479017307], [-7.712159389669749, 4.364565944837721], [-7.63536821128403, 5.188159084489455], [-7.53971513511176, 5.313345241716517], [-7.570152553731686, 5.707352199725903], [-7.993692592795879, 6.126189683451541], [-8.311347622094017, 6.193033148621081], [-8.602880214868618, 6.467564195171659], [-8.385451626000572, 6.911800645368742], [-8.485445522485348, 7.395207831243068], [-8.439298468448696, 7.686042792181736], [-8.280703497744936, 7.687179673692156], [-8.221792364932197, 8.123328762235571], [-8.299048631208562, 8.316443589710302], [-8.203498907900878, 8.455453192575446], [-7.832100389019186, 8.575704250518625], [-8.079113735374348, 9.376223863152033], [-8.309616461612249, 9.789531968622439], [-8.22933712404682, 10.129020290563897], [-8.029943610048617, 10.206534939001711], [-7.89958980959237, 10.297382106970824], [-7.622759161804808, 10.147236232946792], [-6.850506557635057, 10.138993841996237], [-6.666460944027547, 10.430810655148447], [-6.493965013037267, 10.411302801958268], [-6.205222947606429, 10.524060777219132], [-6.050452032892266, 10.096360785355442], [-5.816926235365286, 10.222554633012191], [-5.404341599946973, 10.370736802609144], [-4.954653286143098, 10.152713934769732], [-4.779883592131966, 9.821984768101741], [-4.330246954760383, 9.610834865757139], [-3.980449184576684, 9.862344061721698], [-3.511898972986272, 9.900326239456216], [-2.827496303712706, 9.642460842319775], [-2.56218950032624, 8.219627793811481], [-2.983584967450326, 7.379704901555511], [-3.244370083011261, 6.2504715031135], [-2.810701463217839, 5.389051215024109], [-2.856125047202397, 4.994475816259508]]] } }, { "type": "Feature", "properties": { "admin": "Cameroon", "name": "Cameroon", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[13.07582238124675, 2.267097072759014], [12.951333855855605, 2.321615708826939], [12.359380323952218, 2.19281220133945], [11.751665480199787, 2.326757513839993], [11.276449008843711, 2.261050930180871], [9.649158155972627, 2.283866075037735], [9.795195753629455, 3.073404445809117], [9.404366896205998, 3.734526882335202], [8.948115675501068, 3.904128933117135], [8.744923943729416, 4.352215277519959], [8.488815545290889, 4.495617377129917], [8.500287713259693, 4.771982937026847], [8.757532993208626, 5.47966583904791], [9.233162876023043, 6.444490668153334], [9.522705926154398, 6.453482367372116], [10.118276808318255, 7.038769639509879], [10.497375115611417, 7.055357774275562], [11.058787876030349, 6.644426784690593], [11.745774366918509, 6.981382961449753], [11.839308709366801, 7.397042344589434], [12.063946160539556, 7.799808457872301], [12.218872104550597, 8.305824082874322], [12.753671502339214, 8.717762762888993], [12.955467970438971, 9.417771714714702], [13.1675997249971, 9.64062632897341], [13.308676385153914, 10.160362046748926], [13.572949659894558, 10.798565985553564], [14.415378859116682, 11.572368882692071], [14.468192172918974, 11.90475169519341], [14.57717776862253, 12.085360826053501], [14.181336297266792, 12.483656927943112], [14.213530714584634, 12.802035427293344], [14.495787387762842, 12.859396267137326], [14.893385857816522, 12.219047756392582], [14.960151808337598, 11.555574042197222], [14.923564894274955, 10.891325181517471], [15.467872755605269, 9.982336737503429], [14.909353875394713, 9.99212942142273], [14.627200555081057, 9.920919297724536], [14.171466098699025, 10.021378282099928], [13.954218377344002, 9.549494940626685], [14.544466586981766, 8.965861314322266], [14.979995558337688, 8.796104234243471], [15.120865512765331, 8.382150173369423], [15.436091749745765, 7.692812404811971], [15.279460483469107, 7.421924546737968], [14.776545444404572, 6.408498033062044], [14.536560092841111, 6.22695872642069], [14.459407179429345, 5.451760565610299], [14.558935988023501, 5.03059764243153], [14.478372430080466, 4.732605495620446], [14.950953403389658, 4.21038930909492], [15.036219516671249, 3.851367295747123], [15.405395948964379, 3.335300604664339], [15.862732374747479, 3.013537298998982], [15.907380812247649, 2.557389431158612], [16.01285241055535, 2.267639675298084], [15.940918816805061, 1.727672634280295], [15.14634199388524, 1.964014797367184], [14.337812534246577, 2.22787466064949], [13.07582238124675, 2.267097072759014]]] } }, { "type": "Feature", "properties": { "admin": "Democratic Republic of the Congo", "name": "Dem. Rep. Congo", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[30.833859897593801, 3.50916596111034], [30.773346795380036, 2.339883327642127], [31.174149204235807, 2.204465236821263], [30.852670118948048, 1.849396470543809], [30.468507521290292, 1.58380544677972], [30.086153598762703, 1.062312730306288], [29.875778842902488, 0.597379868976304], [29.819503208136634, -0.205310153813372], [29.587837762172164, -0.58740569417948], [29.579466180140876, -1.341313164885626], [29.29188683443661, -1.620055840667987], [29.254834832483336, -2.215109958508911], [29.117478875451546, -2.292211195488384], [29.02492638521678, -2.839257907730157], [29.276383904749046, -3.293907159034063], [29.339997592900342, -4.499983412294092], [29.519986606572925, -5.419978936386313], [29.41999271008816, -5.939998874539432], [29.620032179490003, -6.520015150583424], [30.199996779101692, -7.079980970898161], [30.740015496551781, -8.340007419470913], [30.34608605319081, -8.238256524288216], [29.002912225060467, -8.40703175215347], [28.734866570762495, -8.526559340044576], [28.449871046672818, -9.164918308146083], [28.673681674928922, -9.605924981324931], [28.496069777141763, -10.789883721564044], [28.372253045370421, -11.793646742401389], [28.642417433392346, -11.971568698782312], [29.341547885869087, -12.36074391037241], [29.616001417771223, -12.178894545137307], [29.699613885219485, -13.257226657771827], [28.934285922976834, -13.248958428605132], [28.52356163912102, -12.698604424696679], [28.15510867687998, -12.272480564017894], [27.38879886242378, -12.132747491100663], [27.164419793412456, -11.608748467661071], [26.55308759939961, -11.924439792532125], [25.752309604604726, -11.784965101776356], [25.418118116973197, -11.330935967659958], [24.783169793402948, -11.238693536018962], [24.314516228947948, -11.262826429899269], [24.257155389103982, -10.951992689663655], [23.912215203555714, -10.926826267137512], [23.456790805767433, -10.867863457892481], [22.837345411884733, -11.017621758674329], [22.402798292742371, -10.99307545333569], [22.155268182064304, -11.084801120653768], [22.208753289486388, -9.894796237836507], [21.87518191904234, -9.523707777548564], [21.801801385187897, -8.908706556842978], [21.949130893652036, -8.305900974158275], [21.746455926203303, -7.920084730667147], [21.728110792739695, -7.2908724910813], [20.514748162526498, -7.299605808138629], [20.601822950938292, -6.93931772219968], [20.091621534920645, -6.943090101756993], [20.037723016040214, -7.116361179231644], [19.417502475673157, -7.155428562044297], [19.166613396896107, -7.738183688999753], [19.016751743249664, -7.988245944860132], [18.464175652752683, -7.847014255406442], [18.134221632569048, -7.98767750410492], [17.472970004962232, -8.068551120641699], [17.089995965247166, -7.545688978712525], [16.860190870845198, -7.222297865429984], [16.573179965896141, -6.622644545115087], [16.326528354567042, -5.877470391466267], [13.375597364971892, -5.864241224799548], [13.02486941900696, -5.984388929878157], [12.735171339578695, -5.965682061388497], [12.322431674863507, -6.100092461779658], [12.182336866920249, -5.789930515163837], [12.436688266660866, -5.684303887559245], [12.468004184629734, -5.248361504745003], [12.631611769265788, -4.991271254092935], [12.995517205465173, -4.781103203961883], [13.258240187237044, -4.882957452009165], [13.600234816144676, -4.500138441590969], [14.144956088933295, -4.510008640158715], [14.209034864975219, -4.793092136253597], [14.582603794013179, -4.970238946150139], [15.170991652088441, -4.3435071753143], [15.753540073314749, -3.855164890156096], [16.006289503654298, -3.535132744972528], [15.972803175529149, -2.712392266453612], [16.407091912510051, -1.740927015798682], [16.86530683764212, -1.225816338713287], [17.523716261472853, -0.743830254726987], [17.638644646889983, -0.424831638189246], [17.663552687254676, -0.058083998213817], [17.826540154703245, 0.288923244626105], [17.774191928791563, 0.855658677571085], [17.89883548347958, 1.741831976728278], [18.09427575040743, 2.365721543788055], [18.39379235197114, 2.90044342692822], [18.453065219809925, 3.504385891123348], [18.542982211997778, 4.201785183118317], [18.932312452884755, 4.709506130385973], [19.467783644293146, 5.031527818212779], [20.290679152108932, 4.691677761245287], [20.927591180106273, 4.322785549329736], [21.659122755630019, 4.224341945813719], [22.405123732195531, 4.02916006104732], [22.704123569436284, 4.633050848810156], [22.841479526468103, 4.710126247573483], [23.297213982850135, 4.609693101414221], [24.41053104014625, 5.108784084489129], [24.805028924262409, 4.897246608902349], [25.128833449003274, 4.927244777847789], [25.278798455514302, 5.170408229997191], [25.650455356557465, 5.256087754737123], [26.402760857862535, 5.150874538590869], [27.044065382604703, 5.127852688004835], [27.374226108517483, 5.233944403500059], [27.979977247842807, 4.408413397637373], [28.428993768026906, 4.287154649264493], [28.696677687298795, 4.455077215996936], [29.159078403446497, 4.38926727947323], [29.715995314256013, 4.600804755060024], [29.953500197069467, 4.173699042167683], [30.833859897593801, 3.50916596111034]]] } }, { "type": "Feature", "properties": { "admin": "Republic of Congo", "name": "Congo", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[12.995517205465173, -4.781103203961883], [12.620759718484491, -4.438023369976135], [12.318607618873923, -4.606230157086187], [11.914963006242086, -5.037986748884789], [11.093772820691923, -3.978826592630546], [11.855121697648114, -3.42687061932105], [11.478038771214299, -2.765618991714241], [11.820963575903189, -2.514161472181982], [12.495702752338159, -2.391688327650242], [12.575284458067639, -1.948511244315134], [13.109618767965626, -2.428740329603513], [13.992407260807706, -2.470804945489099], [14.299210239324564, -1.998275648612213], [14.425455763413593, -1.333406670744971], [14.316418491277741, -0.552627455247048], [13.843320753645653, 0.038757635901149], [14.276265903386953, 1.196929836426619], [14.026668735417214, 1.395677395021153], [13.282631463278816, 1.31418366129688], [13.003113641012074, 1.830896307783319], [13.07582238124675, 2.267097072759014], [14.337812534246577, 2.22787466064949], [15.14634199388524, 1.964014797367184], [15.940918816805061, 1.727672634280295], [16.01285241055535, 2.267639675298084], [16.537058139724135, 3.198254706226278], [17.133042433346297, 3.728196519379451], [17.809900343505259, 3.560196437998569], [18.453065219809925, 3.504385891123348], [18.39379235197114, 2.90044342692822], [18.09427575040743, 2.365721543788055], [17.89883548347958, 1.741831976728278], [17.774191928791563, 0.855658677571085], [17.826540154703245, 0.288923244626105], [17.663552687254676, -0.058083998213817], [17.638644646889983, -0.424831638189246], [17.523716261472853, -0.743830254726987], [16.86530683764212, -1.225816338713287], [16.407091912510051, -1.740927015798682], [15.972803175529149, -2.712392266453612], [16.006289503654298, -3.535132744972528], [15.753540073314749, -3.855164890156096], [15.170991652088441, -4.3435071753143], [14.582603794013179, -4.970238946150139], [14.209034864975219, -4.793092136253597], [14.144956088933295, -4.510008640158715], [13.600234816144676, -4.500138441590969], [13.258240187237044, -4.882957452009165], [12.995517205465173, -4.781103203961883]]] } }, @@ -1086,7 +1082,7 @@ module MenuComponent { - + module NavigationDrawerComponent { $(function () { @@ -1126,7 +1122,7 @@ module PivotChartOlap { $(function () { var sample = new ej.PivotChart($("#PivotChart"),{ dataSource: { - data: "http://bi.syncfusion.com/olap/msmdpump.dll", + data: "http://bi.syncfusion.com/olap/msmdpump.dll", catalog: "Adventure Works DW 2008 SE", cube: "Adventure Works", rows: [ @@ -1296,7 +1292,7 @@ module PivotGaugeOlap { length: 120, width: 7 }, - { + { type: "marker", markerType: "diamond", distanceFromScale: 5, @@ -1325,7 +1321,7 @@ module PivotGaugeOlap { distanceFromScale: -5, backgroundColor: "#fc0606", border: { color: "#fc0606" } - }, + }, { distanceFromScale: -5 }], @@ -1343,7 +1339,7 @@ module PivotGaugeOlap { }] }] }); - }); + }); } @@ -1417,7 +1413,7 @@ module PivotGaugeRelational { length: 120, width: 7 }, - { + { type: "marker", markerType: "diamond", distanceFromScale: 5, @@ -1446,7 +1442,7 @@ module PivotGaugeRelational { distanceFromScale: -5, backgroundColor: "#fc0606", border: { color: "#fc0606" } - }, + }, { distanceFromScale: -5 }], @@ -1464,7 +1460,7 @@ module PivotGaugeRelational { }] }] }); - }); + }); } @@ -1499,7 +1495,7 @@ module PivotGridOlap { ], filters:[] }, - enableGroupingBar: true, + enableGroupingBar: true, pivotTableFieldListID:"PivotSchemaDesigner" }); $("#PivotSchemaDesigner").ejPivotSchemaDesigner(); @@ -1550,7 +1546,7 @@ module PivotGridRelational { fieldCaption: "State" } ], - columns: + columns: [{ fieldName: "Product", fieldCaption: "Product" @@ -1568,10 +1564,10 @@ module PivotGridRelational { ], filters:[] }, - enableGroupingBar: true, + enableGroupingBar: true, pivotTableFieldListID:"PivotSchemaDesigner" }); - $("#PivotSchemaDesigner").ejPivotSchemaDesigner(); + $("#PivotSchemaDesigner").ejPivotSchemaDesigner(); }); } @@ -1712,7 +1708,7 @@ function redo(e: any) { } - + module RadialSliderComponent { $(function () { @@ -1857,7 +1853,7 @@ module RatingComponent { shapeWidth: 25, showTooltip: true }); - + var sample2 = new ej.Rating($("#halfRating"),{ precision: ej.Rating.Precision.Half, value: 3.5, @@ -1888,7 +1884,7 @@ module RatingComponent { shapeHeight: 25, shapeWidth: 25, showTooltip: true - }); + }); }); } @@ -1921,7 +1917,7 @@ module RibbonComponent { toolTip: "Pin the Ribbon" }, applicationTab: { - type: ej.Ribbon.ApplicationTabType.Menu, menuItemID: "ribbonmenu", menuSettings: { openOnClick: false } + type: ej.Ribbon.ApplicationTabType.Menu, menuItemID: "ribbonmenu", menuSettings: { openOnClick: false } }, tabs: [{ id: "home", text: "HOME", groups: [{ @@ -2003,7 +1999,7 @@ module RibbonComponent { width: 60, isBig: false } - }] + }] }, { text: "Font", alignType: "rows", content: [{ @@ -2304,7 +2300,7 @@ module RibbonComponent { groups: [{ id: "zoomin", text: "Zoom In", - toolTip: "Zoom In", + toolTip: "Zoom In", buttonSettings: { width: 58, click: "onClick", @@ -2316,7 +2312,7 @@ module RibbonComponent { { id: "zoomout", text: "Zoom Out", - toolTip: "Zoom Out", + toolTip: "Zoom Out", buttonSettings: { width: 70, click: "onClick", @@ -2328,7 +2324,7 @@ module RibbonComponent { { id: "fullscreen", text: "Full Screen", - toolTip: "Full Screen", + toolTip: "Full Screen", buttonSettings: { width: 73, click: "onClick", @@ -2571,7 +2567,7 @@ module RibbonComponent { } ] } - ], + ], create: function createControl(args) { var ribbon = $("#defaultRibbon").data("ejRibbon"); $("#fontcolor").ejColorPicker({ value: "#FFFF00", modelType: "palette", cssClass: "e-ribbon", toolIcon: "e-fontcoloricon", select: colorHandler }); @@ -2601,7 +2597,7 @@ function onClick(args) { - + module RotatorComponent { $(function () { @@ -2764,7 +2760,7 @@ module ScheduleComponent { } }); }); -} +} @@ -2945,9 +2941,9 @@ module piesparkline4 { }); } - - + + module SplitterComponent { @@ -2982,7 +2978,7 @@ $(function () { pdfUrl: (window).baseurl + "api/Spreadsheet/PdfExport" }, sheets: [{ rangeSettings: [{ dataSource: (window).defaultData, startCell: "A1" }] }], - loadComplete: () => { + loadComplete: () => { var spreadsheet = $("#basicSpreadsheet").data("ejSpreadsheet"), xlFormat = spreadsheet.XLFormat; if (!(spreadsheet).isImport) { spreadsheet.setWidthToColumns([140, 128, 105, 100, 100, 110, 120, 120, 100]); @@ -3006,13 +3002,13 @@ var default_data: Array = [ { Category : "Employees", Country : "USA", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Web", EmployeesCount : 70 }, { Category : "Employees", Country : "USA", JobDescription : "Management", EmployeesCount : 40 }, { Category : "Employees", Country : "USA", JobDescription : "Accounts", EmployeesCount : 60 }, - + { Category : "Employees", Country : "India", JobDescription : "Technical", JobGroup : "Testers", EmployeesCount : 43 }, { Category : "Employees", Country : "India", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Windows", EmployeesCount : 125}, { Category : "Employees", Country : "India", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Web", EmployeesCount : 60 }, { Category : "Employees", Country : "India", JobDescription : "HR Executives", EmployeesCount : 70 }, { Category : "Employees", Country : "India", JobDescription : "Accounts", EmployeesCount : 45 }, - + { Category : "Employees", Country : "Germany", JobDescription : "Sales", JobGroup : "Executive", EmployeesCount : 30 }, { Category : "Employees", Country : "Germany", JobDescription : "Sales", JobGroup : "Analyst", EmployeesCount : 40 }, { Category : "Employees", Country : "Germany", JobDescription : "Marketing", EmployeesCount : 50 }, @@ -3021,13 +3017,13 @@ var default_data: Array = [ { Category : "Employees", Country : "Germany", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Web", EmployeesCount : 27 }, { Category : "Employees", Country : "Germany", JobDescription : "Management", EmployeesCount : 33 }, { Category : "Employees", Country : "Germany", JobDescription : "Accounts", EmployeesCount : 55 }, - + { Category : "Employees", Country : "UK", JobDescription : "Technical", JobGroup : "Testers", EmployeesCount : 45 }, { Category : "Employees", Country : "UK", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Windows", EmployeesCount : 96 }, { Category : "Employees", Country : "UK", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Web", EmployeesCount : 55 }, { Category : "Employees", Country : "UK", JobDescription : "HR Executives", EmployeesCount : 60 }, { Category : "Employees", Country : "UK", JobDescription: "Accounts", EmployeesCount: 30 }, - + { Category : "Employees", Country : "France", JobDescription : "Technical", JobGroup : "Testers", EmployeesCount : 40 }, { Category : "Employees", Country : "France", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Windows", EmployeesCount : 65 }, { Category : "Employees", Country : "France", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Web", EmployeesCount : 27 }, @@ -3037,7 +3033,7 @@ var default_data: Array = [ module sunburstcomponent { $(function () { var sunburstsample = new ej.SunburstChart($("#Sunburst"), { - valueMemberPath: "EmployeesCount", + valueMemberPath: "EmployeesCount", levels: [ {groupMemberPath: "Country"}, {groupMemberPath: "JobDescription"}, @@ -3087,8 +3083,8 @@ module TabComponent { module TagCloudComponent { - - + + var websiteCollection = [ { text: "Google", url: "http://www.google.com", frequency: 12 }, { text: "All Things Digital", url: "http://allthingsd.com/", frequency: 3 }, @@ -3119,7 +3115,7 @@ module TagCloudComponent { text: "text", url: "url", frequency: "frequency" } }); - + }); } @@ -3159,7 +3155,7 @@ module EditorComponent { - + module TileViewComponent { $(function () { @@ -3170,38 +3166,38 @@ module TileViewComponent { imageUrl:'content/images/tile/windows/people_1.png' }); var tile2 = new ej.Tile($("#tile2"), { - imagePosition:"center", + imagePosition:"center", tileSize:"small", - imageUrl:'content/images/tile/windows/alerts.png', - + imageUrl:'content/images/tile/windows/alerts.png', + }); var tile3 = new ej.Tile($("#tile3"), { - imagePosition:"center", + imagePosition:"center", tileSize:"small", - imageUrl:'content/images/tile/windows/bing.png', + imageUrl:'content/images/tile/windows/bing.png', }); var tile4 = new ej.Tile($("#tile4"), { tileSize:"small", - imageUrl:'content/images/tile/windows/camera.png', + imageUrl:'content/images/tile/windows/camera.png', }); var tile5 = new ej.Tile($("#tile5"), { - imagePosition:"center", + imagePosition:"center", tileSize:"small", - imageUrl:'content/images/tile/windows/messages.png', + imageUrl:'content/images/tile/windows/messages.png', }); var tile6 = new ej.Tile($("#tile6"), { - imagePosition:"center", + imagePosition:"center", tileSize:"medium", - imageUrl:'content/images/tile/windows/games.png', + imageUrl:'content/images/tile/windows/games.png', caption:{text:"Play"} }); - var tile7 = new ej.Tile($("#tile7"), { + var tile7 = new ej.Tile($("#tile7"), { tileSize:"medium", imageUrl:'content/images/tile/windows/map.png', caption:{text:"Maps"} }); var tile8 = new ej.Tile($("#tile8"), { - imagePosition:"fill", + imagePosition:"fill", tileSize:"wide", imageUrl:'content/images/tile/windows/sports.png', caption:{text:"Sports"} @@ -3253,13 +3249,13 @@ module TimePickerComponent { module ToolbarComponent { - + $(function () { var sample = new ej.Toolbar($("#editingToolbar"),{ width: "100%", cssClass: "gradient-lime", enableSeparator: true, - + isResponsive: true, orientation: ej.Orientation.Horizontal, showRoundedCorner: true @@ -3272,7 +3268,7 @@ module ToolbarComponent { module TooltipComponent { - + $(function () { var sample1 = new ej.Tooltip($("#link1"),{ @@ -3367,7 +3363,7 @@ module TreeGridComponent { isResponsive: true, }); }); -} +} @@ -3412,7 +3408,7 @@ module treemapcomponent { - + module TreeViewComponent { $(function () { @@ -3429,7 +3425,7 @@ module TreeViewComponent { module UploadboxComponent { - + $(function () { var sample = new ej.Uploadbox($("#UploadDefault"),{ saveUrl: (window).baseurl + "api/uploadbox/Save", diff --git a/types/ej.web.all/index.d.ts b/types/ej.web.all/index.d.ts index ae1948ba86..f1aec6bc64 100644 --- a/types/ej.web.all/index.d.ts +++ b/types/ej.web.all/index.d.ts @@ -17,7 +17,6 @@ * applicable laws. */ declare namespace ej { - /* tslint:disable:no-empty-interface */ const dataUtil: dataUtil; function isMobile(): boolean; function isIOS(): boolean; diff --git a/types/ej.web.all/tslint.json b/types/ej.web.all/tslint.json index 36e60efe0b..35e3f27cc8 100644 --- a/types/ej.web.all/tslint.json +++ b/types/ej.web.all/tslint.json @@ -12,6 +12,31 @@ "no-redundant-jsdoc-2": false, "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "strict-export-declare-modifiers": false + + "strict-export-declare-modifiers": false, + "whitespace": false, + "prefer-conditional-expression": false, + "no-var-keyword": false, + "object-literal-shorthand": false, + "space-before-function-paren": false, + "no-namespace": false, + "no-internal-module": false, + "only-arrow-functions": false, + "no-empty-interface": false, + "prefer-const": false, + "max-line-length": false, + "array-type": false, + "ban-types": false, + "semicolon": false, + "object-literal-key-quotes": false, + "one-variable-per-declaration": false, + "triple-equals": false, + "typedef-whitespace": false, + "prefer-template": false, + "no-duplicate-variable": false, + "radix": false, + "prefer-for-of": false, + "one-line": false, + "no-unnecessary-type-assertion": false } } diff --git a/types/esri-leaflet/esri-leaflet-tests.ts b/types/esri-leaflet/esri-leaflet-tests.ts index 89520101a3..37be66a9a3 100644 --- a/types/esri-leaflet/esri-leaflet-tests.ts +++ b/types/esri-leaflet/esri-leaflet-tests.ts @@ -1,9 +1,3 @@ -// tslint:disable:no-trailing-whitespace -// tslint:disable:prefer-method-signature -// tslint:disable:no-single-declare-module -// tslint:disable:only-arrow-functions -// tslint:disable:space-before-function-paren - import * as L from 'leaflet'; import 'esri-leaflet'; @@ -108,15 +102,15 @@ tiledMapLayer.metadata((err, metadata) => { }); tiledMapLayer.identify() .at(latlng) - .run(function (error, featureCollection) { }); + .run((error, featureCollection) => {}); tiledMapLayer.find() .layers('18') .text('Colorado') - .run(function (error, featureCollection) { }); + .run((error, featureCollection) => {}); tiledMapLayer.query() .layer(0) .within(latlngbounds) - .run(function (error, featureCollection, response) { }); + .run((error, featureCollection, response) => {}); let dynamicMapLayer: L.esri.DynamicMapLayer; let dynamicMapLayerOptions: L.esri.DynamicMapLayerOptions; @@ -225,24 +219,24 @@ dynamicMapLayer = new L.esri.DynamicMapLayer({ token: 'token' }); -dynamicMapLayer.bindPopup(function (err, featureCollection, response) { +dynamicMapLayer.bindPopup((err, featureCollection, response) => { const count = featureCollection.features.length; return (count) ? count + ' features' : false; }); -dynamicMapLayer.metadata(function (error, metadata) { }); +dynamicMapLayer.metadata((error, metadata) => {}); dynamicMapLayer.identify() .at(latlng) - .run(function (error, featureCollection) { }); + .run((error, featureCollection) => {}); dynamicMapLayer.find() .layers('18') .text('Colorado') - .run(function (error, featureCollection) { }); + .run((error, featureCollection) => {}); dynamicMapLayer.query() .layer(0) .within(latlngbounds) - .run(function (error, featureCollection, response) { }); + .run((error, featureCollection, response) => {}); let featureLayerOptions: L.esri.FeatureLayerOptions; let featureLayer: L.esri.FeatureLayer; @@ -324,20 +318,20 @@ featureLayer = new L.esri.FeatureLayer({ featureLayer.setStyle({ color: 'white' }); -featureLayer.setStyle(function (feature) { +featureLayer.setStyle(feature => { return { weight: feature.properties.pixelWidth }; }); -featureLayer.eachFeature(function (layer) { }); +featureLayer.eachFeature(layer => {}); featureLayer.query() .within(latlngbounds) .where("Direction = 'WEST'") - .run(function (error, featureCollection) { }); + .run((error, featureCollection) => {}); -featureLayer.metadata(function (error, metadata) { }); +featureLayer.metadata((error, metadata) => {}); let mapServiceOptions: L.esri.MapServiceOptions; let mapService: L.esri.MapService; @@ -372,27 +366,27 @@ mapService = new L.esri.MapService({ mapService.query() .layer(0) .within(latlngbounds) - .run(function (error, featureCollection, response) { }); + .run((error, featureCollection, response) => {}); mapService.identify() .on(map) .at(latlng) - .run(function (error, featureCollection, response) { }); + .run((error, featureCollection, response) => {}); mapService.find() .layers('18') .text('Colorado') .fields('name') - .run(function (error, featureCollection, response) { }); + .run((error, featureCollection, response) => {}); mapService.identify() .on(map) .at([45.543, -122.621]) .layers('visible:1') - .run(function (error, featureCollection, response) { }); + .run((error, featureCollection, response) => {}); mapService.find() .layers('18') .text('Colorado') .fields('GNIS_NAME') - .run(function (error, featureCollection, response) { }); + .run((error, featureCollection, response) => {}); let imageServiceOptions: L.esri.ImageServiceOptions; let imageService: L.esri.ImageService; @@ -457,7 +451,7 @@ featureLayerService = new L.esri.FeatureLayerService({ featureLayerService.query() .within(latlngbounds) .where("Direction = 'WEST'") - .run(function (error, featureCollection, response) { }); + .run((error, featureCollection, response) => {}); const feature = { type: 'Feature', @@ -469,7 +463,7 @@ const feature = { name: 'Hello World' } }; -featureLayerService.addFeature(feature, function (error, response) { }); +featureLayerService.addFeature(feature, (error, response) => {}); const feature2 = { type: 'Feature', @@ -482,14 +476,14 @@ const feature2 = { name: 'Hi I\'m Feature 2' } }; -featureLayerService.updateFeature(feature2, function (error, response) { }); +featureLayerService.updateFeature(feature2, (error, response) => {}); -featureLayerService.deleteFeature(2, function (error, response) { }); +featureLayerService.deleteFeature(2, (error, response) => {}); featureLayerService .query() .where("name='Hello World'") - .run(function (error, featureCollection, response) { }); + .run((error, featureCollection, response) => {}); let queryOptions: L.esri.QueryOptions; let query: L.esri.Query; @@ -522,17 +516,17 @@ query = new L.esri.Query({ }); query.within(latlngbounds); -query.run(function (error, featureCollection, response) { }); -query.bounds(function (error, latLngBounds, response) { }); +query.run((error, featureCollection, response) => {}); +query.bounds((error, latLngBounds, response) => {}); query.nearby(latlng, 500); -query.run(function (error, featureCollection, response) { }); +query.run((error, featureCollection, response) => {}); query.nearby(latlng, 2000).where("direction='East'").orderBy('stop_id', 'ASC'); -query.count(function (error, count, response) { }); -query.ids(function (error, ids, response) { }); +query.count((error, count, response) => {}); +query.ids((error, ids, response) => {}); -query.where("zone_id='B'").bounds(function (error, latLngBounds, response) { }); +query.where("zone_id='B'").bounds((error, latLngBounds, response) => {}); query.transform(15851); query.transform({wkid: 15851 }); @@ -574,7 +568,7 @@ identifyFeatures .on(map) .at([45.543, -122.621]) .layers('visible:1') - .run(function (error, featureCollection, response) { }); + .run((error, featureCollection, response) => {}); identifyFeatures.at(marker); identifyFeatures.at(polygon); @@ -614,9 +608,9 @@ find = new L.esri.Find({ find.layers('18') .text('Colorado'); -find.run(function (error, featureCollection, response) { }); +find.run((error, featureCollection, response) => {}); find.layers('13') .text('198133') .fields('GNIS_ID'); -find.run(function (error, featureCollection, response) { }); +find.run((error, featureCollection, response) => {}); diff --git a/types/estree/estree-tests.ts b/types/estree/estree-tests.ts index ac2516f18b..5cd065d03f 100644 --- a/types/estree/estree-tests.ts +++ b/types/estree/estree-tests.ts @@ -273,9 +273,6 @@ switch (node.type) { case 'Program': program = node; break; - case 'FunctionDeclaration': - functionDeclaration = node - break; case 'FunctionExpression': functionExpression = node break; @@ -367,18 +364,12 @@ switch (node.type) { case 'ObjectExpression': objectExpression = node; break; - case 'FunctionExpression': - functionExpression = node; - break; case 'ArrowFunctionExpression': arrowFunctionExpression = node; break; case 'YieldExpression': yieldExpression = node; break; - case 'Literal': - literal = node; - break; case 'UnaryExpression': unaryExpression = node; break; @@ -421,9 +412,6 @@ switch (node.type) { case 'MetaProperty': metaProperty = node; break; - case 'Identifier': - identifier = node; - break; case 'AwaitExpression': awaitExpression = node; break; @@ -443,9 +431,6 @@ switch (node.type) { break; // narrowing of Pattern - case 'Identifier': - identifier = node; - break; case 'ObjectPattern': objectPattern = node; break; @@ -458,20 +443,11 @@ switch (node.type) { case 'AssignmentPattern': assignmentPattern = node; break; - case 'MemberExpression': - memberExpression = node; - break; // end narrowing of Pattern case 'ClassBody': classBody = node break; - case 'ClassDeclaration': - classDeclaration = node - break; - case 'ClassExpression': - classExpression = node - break; case 'MethodDefinition': methodDefinition = node break; diff --git a/types/fluent-ffmpeg/index.d.ts b/types/fluent-ffmpeg/index.d.ts index 79d91cf7ed..1e9eaf5eb4 100644 --- a/types/fluent-ffmpeg/index.d.ts +++ b/types/fluent-ffmpeg/index.d.ts @@ -281,12 +281,10 @@ declare namespace Ffmpeg { getAvailableFormats(callback: FormatsCallback): void; // ffprobe - /* tslint:disable:unified-signatures */ ffprobe(callback: (err: any, data: FfprobeData) => void): void; ffprobe(index: number, callback: (err: any, data: FfprobeData) => void): void; - ffprobe(options: string[], callback: (err: any, data: FfprobeData) => void): void; + ffprobe(options: string[], callback: (err: any, data: FfprobeData) => void): void; // tslint:disable-line unified-signatures ffprobe(index: number, options: string[], callback: (err: any, data: FfprobeData) => void): void; - /* tslint:enable:unified-signatures */ // recipes saveToFile(output: string): FfmpegCommand; @@ -306,12 +304,10 @@ declare namespace Ffmpeg { run(): void; } - /* tslint:disable:unified-signatures */ function ffprobe(file: string, callback: (err: any, data: FfprobeData) => void): void; function ffprobe(file: string, index: number, callback: (err: any, data: FfprobeData) => void): void; - function ffprobe(file: string, options: string[], callback: (err: any, data: FfprobeData) => void): void; + function ffprobe(file: string, options: string[], callback: (err: any, data: FfprobeData) => void): void; // tslint:disable-line unified-signatures function ffprobe(file: string, index: number, options: string[], callback: (err: any, data: FfprobeData) => void): void; - /* tslint:enable:unified-signatures */ } declare function Ffmpeg(options?: Ffmpeg.FfmpegCommandOptions): Ffmpeg.FfmpegCommand; declare function Ffmpeg(input?: string | stream.Readable, options?: Ffmpeg.FfmpegCommandOptions): Ffmpeg.FfmpegCommand; diff --git a/types/got/index.d.ts b/types/got/index.d.ts index 14724b8eda..f76a907b7d 100644 --- a/types/got/index.d.ts +++ b/types/got/index.d.ts @@ -69,7 +69,6 @@ declare const got: got.GotFn & }; declare namespace got { - // tslint:disable unified-signatures interface GotFn { (url: GotUrl): GotPromise; (url: GotUrl, options: GotJSONOptions): GotPromise; @@ -78,7 +77,6 @@ declare namespace got { (url: GotUrl, options: GotBodyOptions): GotPromise; (url: GotUrl, options: GotBodyOptions): GotPromise; } - // tslint:enable unified-signatures type GotStreamFn = (url: GotUrl, options?: GotOptions) => GotEmitter & nodeStream.Duplex; diff --git a/types/got/tslint.json b/types/got/tslint.json index 3db14f85ea..4a4f94c041 100644 --- a/types/got/tslint.json +++ b/types/got/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "unified-signatures": false + } +} diff --git a/types/hexo-log/index.d.ts b/types/hexo-log/index.d.ts index 07a5b74ede..40640a3a36 100644 --- a/types/hexo-log/index.d.ts +++ b/types/hexo-log/index.d.ts @@ -8,8 +8,6 @@ import bunyan = require('hexo-bunyan'); import streams = require('stream'); declare class HexoLogger extends bunyan { - /* tslint:disable:unified-signatures */ - /** * Returns a boolean: is the `debug` level enabled? * @@ -154,8 +152,6 @@ declare class HexoLogger extends bunyan { * Uses `util.format` for msg formatting. */ log(format: any, ...params: any[]): void; - - /* tslint:enable:unified-signatures */ } declare function createLogger(options?: { name?: string; silent?: boolean; debug?: boolean; }): HexoLogger; diff --git a/types/hexo-log/tslint.json b/types/hexo-log/tslint.json index 3db14f85ea..08b1465cd6 100644 --- a/types/hexo-log/tslint.json +++ b/types/hexo-log/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "unified-signatures": false + } +} diff --git a/types/images/index.d.ts b/types/images/index.d.ts index 23b10afbe4..c52758b5a1 100644 --- a/types/images/index.d.ts +++ b/types/images/index.d.ts @@ -32,12 +32,10 @@ declare namespace images { } } -/* tslint:disable:unified-signatures */ declare function images(file: string): images.ImagesStatic; declare function images(width: number, height: number): images.ImagesStatic; declare function images(buffer: Buffer, start?: number, end?: number): images.ImagesStatic; -declare function images(image: images.ImagesStatic): images.ImagesStatic; +declare function images(image: images.ImagesStatic): images.ImagesStatic; // tslint:disable-line unified-signatures declare function images(image: images.ImagesStatic, x: number, y: number, width: number, height: number): images.ImagesStatic; -/* tslint:enable:unified-signatures */ export = images; diff --git a/types/isotope-layout/index.d.ts b/types/isotope-layout/index.d.ts index 84f14bed06..019aa9ec37 100644 --- a/types/isotope-layout/index.d.ts +++ b/types/isotope-layout/index.d.ts @@ -278,7 +278,6 @@ declare var Isotope: { }; interface JQuery { - // tslint:disable:unified-signatures /** * Get the Isotope instance from a jQuery object. Isotope instances are useful to access Isotope properties. */ @@ -370,5 +369,4 @@ interface JQuery { * @param options All options are optional, but itemSelector is recommended. Layout modes have their own separate options. */ isotope(options: IsotopeLibrary.IsotopeOptions): JQuery; - // tslint:enable } diff --git a/types/isotope-layout/tslint.json b/types/isotope-layout/tslint.json index 4f44991c3c..758e484744 100644 --- a/types/isotope-layout/tslint.json +++ b/types/isotope-layout/tslint.json @@ -1,6 +1,7 @@ { "extends": "dtslint/dt.json", "rules": { - "no-empty-interface": false + "no-empty-interface": false, + "unified-signatures": false } } diff --git a/types/jasmine-ajax/jasmine-ajax-tests.ts b/types/jasmine-ajax/jasmine-ajax-tests.ts index fabd525012..6e783f3eda 100644 --- a/types/jasmine-ajax/jasmine-ajax-tests.ts +++ b/types/jasmine-ajax/jasmine-ajax-tests.ts @@ -751,13 +751,12 @@ describe('FakeRequest', () => { }); describe("Jasmine Mock Ajax (for toplevel)", () => { - // tslint:disable one-variable-per-declaration - let request, anotherRequest, response; - let success, error, complete; - let client, onreadystatechange; + // TODO: these are all `any`! + let request, anotherRequest, response; // tslint:disable-line one-variable-per-declaration + let success, error, complete; // tslint:disable-line one-variable-per-declaration + let client, onreadystatechange; // tslint:disable-line one-variable-per-declaration const sharedContext: any = {}; - let fakeGlobal, mockAjax; - // tslint:enable + let fakeGlobal, mockAjax; // tslint:disable-line one-variable-per-declaration beforeEach(() => { const fakeXMLHttpRequest = jasmine.createSpy('realFakeXMLHttpRequest'); diff --git a/types/jquery.validation/index.d.ts b/types/jquery.validation/index.d.ts index 95be732332..bcd4bb7f9d 100644 --- a/types/jquery.validation/index.d.ts +++ b/types/jquery.validation/index.d.ts @@ -279,25 +279,23 @@ interface JQuery { * @param attributes A space-separated list of attribute names to remove. */ removeAttrs(attributes: string): any; - // tslint:disable:unified-signatures /** * Adds the specified rules and returns all rules for the first matched element. Requires that the parent form is validated, that is, $( "form" ).validate() is called first. * * @param command "remove" or "add" * @param rules The rules to add. Accepts the same format as the rules-option of the validate-method. */ - rules(command: "add", rules?: JQueryValidation.RulesDictionary): any; + rules(command: "add", rules?: JQueryValidation.RulesDictionary): any; // tslint:disable-line unified-signatures /** * Removes the specified rules and returns all rules for the first matched element. * @param command "remove" * @param rules The space-seperated names of rules to remove and return. If left unspecified, removes and returns all rules. Manipulates only rules specified via rules-option or via rules("add"). */ - rules(command: "remove", rules?: string): any; + rules(command: "remove", rules?: string): any; // tslint:disable-line unified-signatures /** * Returns the validation rules for teh first selected element. */ rules(): any; - // tslint:enable /** * Checks whether the selected form is valid or whether all selected elements are valid. */ diff --git a/types/js-base64/index.d.ts b/types/js-base64/index.d.ts index 00a77fe462..95fa5ccd8c 100644 --- a/types/js-base64/index.d.ts +++ b/types/js-base64/index.d.ts @@ -30,9 +30,7 @@ export namespace Base64 { } // Helper to allow referencing Base64 from inside the global declaration without creating a self reference -/* tslint:disable:strict-export-declare-modifiers */ -type Base64_ = typeof Base64; -/* tslint:enable:strict-export-declare-modifiers */ +export type Base64_ = typeof Base64; declare global { interface String { diff --git a/types/koa/index.d.ts b/types/koa/index.d.ts index 64bd8ed41a..1203864c8c 100644 --- a/types/koa/index.d.ts +++ b/types/koa/index.d.ts @@ -459,7 +459,6 @@ declare class Application extends EventEmitter { hostname?: string, listeningListener?: () => void, ): Server; - /* tslint:disable:unified-signatures */ listen( port: number, backlog?: number, @@ -479,7 +478,6 @@ declare class Application extends EventEmitter { listeningListener?: () => void, ): Server; listen(handle: any, listeningListener?: () => void): Server; - /* tslint:enable:unified-signatures*/ /** * Return JSON representation. diff --git a/types/mailparser/mailparser-tests.ts b/types/mailparser/mailparser-tests.ts index 142a2c8b0f..19c92814aa 100644 --- a/types/mailparser/mailparser-tests.ts +++ b/types/mailparser/mailparser-tests.ts @@ -1,4 +1,3 @@ -// tslint:disable import mailparser_mod = require('mailparser'); import MailParser = mailparser_mod.MailParser; import simpleParser = mailparser_mod.simpleParser; diff --git a/types/microsoftteams/index.d.ts b/types/microsoftteams/index.d.ts index 4ff2d9813a..497090cfa3 100644 --- a/types/microsoftteams/index.d.ts +++ b/types/microsoftteams/index.d.ts @@ -5,7 +5,6 @@ // Yuri Dogandjiev // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/types/microsoftteams // TypeScript Version: 2.1 -// tslint:disable:prefer-method-signature interface MessageEvent { originalEvent: MessageEvent; diff --git a/types/nodemailer/nodemailer-tests.ts b/types/nodemailer/nodemailer-tests.ts index 00238d2d5c..9761cb73e4 100644 --- a/types/nodemailer/nodemailer-tests.ts +++ b/types/nodemailer/nodemailer-tests.ts @@ -1,4 +1,3 @@ -/* tslint:disable:no-namespace prefer-template */ import * as nodemailer from 'nodemailer'; import addressparser = require('nodemailer/lib/addressparser'); @@ -37,7 +36,7 @@ const aws = { // 1. Nodemailer -namespace nodemailer_test { +function nodemailer_test() { // Generate test SMTP service account from ethereal.email // Only needed if you don't have a real mail account for testing nodemailer.createTestAccount((err, account) => { @@ -85,7 +84,7 @@ namespace nodemailer_test { // Commmon fields -namespace message_common_fields_test { +function message_common_fields_test() { const message: Mail.Options = { from: 'sender@server.com', to: 'receiver@sender.com', @@ -97,7 +96,7 @@ namespace message_common_fields_test { // More advanced fields -namespace message_more_advanced_fields_test { +function message_more_advanced_fields_test() { const message: Mail.Options = { headers: { 'My-Custom-Header': 'header value' @@ -116,7 +115,7 @@ namespace message_more_advanced_fields_test { // 3. Attachments -namespace message_attachments_test { +function message_attachments_test() { const message: Mail.Options = { attachments: [ { // utf-8 string as an attachment @@ -157,7 +156,7 @@ namespace message_attachments_test { }, { // use pregenerated MIME node - raw: 'Content-Type: text/plain\r\n' + + raw: 'Content-Type: text/plain\r\n' + // tslint:disable-line prefer-template 'Content-Disposition: attachment;\r\n' + '\r\n' + 'Hello world!' @@ -168,7 +167,7 @@ namespace message_attachments_test { // 3. Alternatives -namespace message_alternatives_test { +function message_alternatives_test() { const message: Mail.Options = { html: 'Hello world!', alternatives: [ @@ -182,7 +181,7 @@ namespace message_alternatives_test { // 3. Address object -namespace message_address_object_test { +function message_address_object_test() { const message: Mail.Options = { to: 'foobar@blurdybloop.com, "Ноде Майлер" , "Name, User" ', cc: [ @@ -204,7 +203,7 @@ namespace message_address_object_test { // Send a REQUEST event as a string -namespace message_calendar_request_test { +function message_calendar_request_test() { const content = 'BEGIN:VCALENDAR\r\nPRODID:-//ACME/DesktopCalendar//EN\r\nMETHOD:REQUEST\r\n...'; const message: Mail.Options = { @@ -222,7 +221,7 @@ namespace message_calendar_request_test { // Send a PUBLISH event from a file -namespace message_calendar_publish_test { +function message_calendar_publish_test() { const message: Mail.Options = { from: 'sender@example.com', to: 'recipient@example.com', @@ -237,7 +236,7 @@ namespace message_calendar_publish_test { // Send a CANCEL event from an URL -namespace message_calendar_cancel_test { +function message_calendar_cancel_test() { const message: Mail.Options = { from: 'sender@example.com', to: 'recipient@example.com', @@ -252,7 +251,7 @@ namespace message_calendar_cancel_test { // 3. Embedded images -namespace message_embedded_images_test { +function message_embedded_images_test() { const message: Mail.Options = { html: 'Embedded image: ', attachments: [{ @@ -267,7 +266,7 @@ namespace message_embedded_images_test { // Setup different List-* headers -namespace message_list_headers_test { +function message_list_headers_test() { const message: Mail.Options = { from: 'sender@example.com', to: 'recipient@example.com', @@ -308,7 +307,7 @@ namespace message_list_headers_test { // Set custom headers -namespace message_custom_headers_test { +function message_custom_headers_test() { const message: Mail.Options = { headers: { 'x-my-key': 'header value', @@ -319,7 +318,7 @@ namespace message_custom_headers_test { // Multiple rows with the same key -namespace message_multiple_rows_with_the_same_key_test { +function message_multiple_rows_with_the_same_key_test() { const message: Mail.Options = { headers: { 'x-my-key': [ @@ -333,7 +332,7 @@ namespace message_multiple_rows_with_the_same_key_test { // Prepared headers -namespace message_prepared_headers_test { +function message_prepared_headers_test() { const message: Mail.Options = { headers: { 'x-processed': 'a really long header or value with non-ascii characters 👮', @@ -349,7 +348,7 @@ namespace message_prepared_headers_test { // Use string as a message body -namespace message_string_body_test { +function message_string_body_test() { const message: Mail.Options = { envelope: { from: 'sender@example.com', @@ -365,7 +364,7 @@ Hello world!` // Set EML file as message body -namespace message_eml_file_test { +function message_eml_file_test() { const message: Mail.Options = { envelope: { from: 'sender@example.com', @@ -379,7 +378,7 @@ namespace message_eml_file_test { // Set string as attachment body -namespace message_string_attachment_test { +function message_string_attachment_test() { const message: Mail.Options = { from: 'sender@example.com', to: 'recipient@example.com', @@ -396,7 +395,7 @@ Attached text file`}] // Single connection -namespace smtp_single_connection_test { +function smtp_single_connection_test() { const smtpConfig: SMTPTransport.Options = { host: 'smtp.example.com', port: 587, @@ -411,7 +410,7 @@ namespace smtp_single_connection_test { // Pooled connection -namespace smtp_pooled_connection_test { +function smtp_pooled_connection_test() { const smtpConfig: SMTPPool.Options = { pool: true, host: 'smtp.example.com', @@ -427,7 +426,7 @@ namespace smtp_pooled_connection_test { // Allow self-signed certificates -namespace smtp_self_signed_test { +function smtp_self_signed_test() { const smtpConfig: SMTPTransport.Options = { host: 'my.smtp.host', port: 465, @@ -446,7 +445,7 @@ namespace smtp_self_signed_test { // Verify SMTP connection configuration -namespace smtp_verify_test { +function smtp_verify_test() { const transporter = nodemailer.createTransport(); transporter.verify((error, success) => { if (error) { @@ -459,7 +458,7 @@ namespace smtp_verify_test { // 4. SMTP envelope -namespace smtp_envelope_test { +function smtp_envelope_test() { const message: Mail.Options = { from: 'mailer@nodemailer.com', // listed in rfc822 message header to: 'daemon@nodemailer.com', // listed in rfc822 message header @@ -474,14 +473,14 @@ namespace smtp_envelope_test { // transporter.close() -namespace smtp_pool_close_test { +function smtp_pool_close_test() { const transporter = nodemailer.createTransport({ pool: true }); transporter.close(); } // Event:‘idle’ -namespace smtp_pool_idle_test { +function smtp_pool_idle_test() { const messages = [{ raw: 'list of messages' }]; const transporter = nodemailer.createTransport({ pool: true }); transporter.on('idle', () => { @@ -496,7 +495,7 @@ namespace smtp_pool_idle_test { // Create a testing account on the fly -namespace smtp_test_account_test { +function smtp_test_account_test() { nodemailer.createTestAccount((err, account) => { if (!err) { // create reusable transporter object using the default SMTP transport @@ -515,7 +514,7 @@ namespace smtp_test_account_test { // Use environment specific SMTP settings -namespace smtp_info_test { +function smtp_info_test() { const transporter = nodemailer.createTransport(); transporter.sendMail({}).then((info: SMTPTransport.SentMessageInfo) => { console.log('Preview URL: ' + nodemailer.getTestMessageUrl(info)); @@ -526,7 +525,7 @@ namespace smtp_info_test { // Using custom token handling -namespace oauth2_token_handling_test { +function oauth2_token_handling_test() { const transporter = nodemailer.createTransport(); const userTokens: { [key: string]: string; } = {}; transporter.set('oauth2_provision_cb', (user, renew, callback) => { @@ -541,7 +540,7 @@ namespace oauth2_token_handling_test { // Token update notifications -namespace oauth2_token_update_test { +function oauth2_token_update_test() { const transporter = nodemailer.createTransport(); transporter.on('token', token => { console.log('A new access token was generated'); @@ -553,7 +552,7 @@ namespace oauth2_token_update_test { // Authenticate using existing token -namespace oauth2_existing_token_test { +function oauth2_existing_token_test() { const transporter = nodemailer.createTransport({ host: 'smtp.gmail.com', port: 465, @@ -568,7 +567,7 @@ namespace oauth2_existing_token_test { // Custom handler -namespace oauth2_custom_handler_test { +function oauth2_custom_handler_test() { const transporter = nodemailer.createTransport({ host: 'smtp.gmail.com', port: 465, @@ -593,7 +592,7 @@ namespace oauth2_custom_handler_test { // Set up 3LO authentication -namespace oauth2_3lo_test { +function oauth2_3lo_test() { const transporter = nodemailer.createTransport({ host: 'smtp.gmail.com', port: 465, @@ -612,7 +611,7 @@ namespace oauth2_3lo_test { // Set up 2LO authentication -namespace oauth2_2lo_test { +function oauth2_2lo_test() { const transporter = nodemailer.createTransport({ host: 'smtp.gmail.com', port: 465, @@ -630,7 +629,7 @@ namespace oauth2_2lo_test { // Provide authentication details with message options -namespace oauth2_message_options_test { +function oauth2_message_options_test() { const transporter = nodemailer.createTransport({ host: 'smtp.gmail.com', port: 465, @@ -665,7 +664,7 @@ namespace oauth2_message_options_test { transporter.sendMail(options); } -namespace oauth2_privision_cb_test { +function oauth2_privision_cb_test() { const transporter = nodemailer.createTransport({ host: 'smtp.gmail.com', port: 465, @@ -703,7 +702,7 @@ namespace oauth2_privision_cb_test { // Send a message using specific binary -namespace sendmail_test { +function sendmail_test() { const transporter = nodemailer.createTransport({ sendmail: true, newline: 'unix', @@ -726,7 +725,7 @@ namespace sendmail_test { // Send a message using SES transport -namespace ses_test { +function ses_test() { // configure AWS SDK aws.config.loadFromPath('config.json'); @@ -763,7 +762,7 @@ namespace ses_test { // Stream a message with windows-style newlines -namespace stream_test { +function stream_test() { const transporter = nodemailer.createTransport({ streamTransport: true, newline: 'windows' @@ -787,7 +786,7 @@ namespace stream_test { // Create a buffer with unix-style newlines -namespace stream_buffer_unix_newlines_test { +function stream_buffer_unix_newlines_test() { const transporter = nodemailer.createTransport({ streamTransport: true, newline: 'unix', @@ -809,7 +808,7 @@ namespace stream_buffer_unix_newlines_test { // Create a JSON encoded message object -namespace json_test { +function json_test() { const transporter = nodemailer.createTransport({ jsonTransport: true }); @@ -831,7 +830,7 @@ namespace json_test { // 'compile' -namespace plugin_compile_test { +function plugin_compile_test() { const transporter = nodemailer.createTransport(); function plugin(mail: typeof transporter.MailMessage, callback: (err?: Error | null) => void) { @@ -856,7 +855,7 @@ namespace plugin_compile_test { // 'stream' -namespace plugin_stream_test { +function plugin_stream_test() { const transformer: stream.Transform = new (require('stream').Transform)(); transformer._transform = function(chunk: Buffer, encoding, done) { @@ -890,7 +889,7 @@ namespace plugin_stream_test { // Transport Example -namespace plugin_transport_example_test { +function plugin_transport_example_test() { interface MailOptions extends Mail.Options { mailOption?: 'foo'; } @@ -933,7 +932,7 @@ namespace plugin_transport_example_test { // Sign all messages -namespace dkim_sign_all_test { +function dkim_sign_all_test() { const opts: SMTPTransport.Options = { host: 'smtp.example.com', port: 465, @@ -948,7 +947,7 @@ namespace dkim_sign_all_test { // Sign all messages with multiple keys -namespace dkim_sign_multiple_keys_test { +function dkim_sign_multiple_keys_test() { const transporter = nodemailer.createTransport({ host: 'smtp.example.com', port: 465, @@ -973,7 +972,7 @@ namespace dkim_sign_multiple_keys_test { // Sign a specific message -namespace dkim_sign_specific_message_test { +function dkim_sign_specific_message_test() { const transporter = nodemailer.createTransport({ host: 'smtp.example.com', port: 465, @@ -994,7 +993,7 @@ namespace dkim_sign_specific_message_test { // Cache large messages for signing -namespace dkim_cache_large_messages_test { +function dkim_cache_large_messages_test() { const transporter = nodemailer.createTransport({ host: 'smtp.example.com', port: 465, @@ -1011,7 +1010,7 @@ namespace dkim_cache_large_messages_test { // Do not sign specific header keys -namespace dkim_specific_header_key_test { +function dkim_specific_header_key_test() { const transporter = nodemailer.createTransport({ host: 'smtp.example.com', port: 465, @@ -1029,7 +1028,7 @@ namespace dkim_specific_header_key_test { // SMTP Connection -namespace smtp_connection_test { +function smtp_connection_test() { const connection = new SMTPConnection(); connection.connect(() => { connection.login({ user: 'user', pass: 'pass' }, (err) => { @@ -1056,7 +1055,7 @@ namespace smtp_connection_test { // createReadStream -namespace mailcomposer_createReadStream_test { +function mailcomposer_createReadStream_test() { const mail = new MailComposer({ from: '...' }); const stream = mail.compile().createReadStream(); stream.pipe(process.stdout); @@ -1064,7 +1063,7 @@ namespace mailcomposer_createReadStream_test { // build -namespace mailcomposer_build_test { +function mailcomposer_build_test() { const mail = new MailComposer({ from: '...' }); mail.compile().build((err, message) => { process.stdout.write(message); @@ -1073,7 +1072,7 @@ namespace mailcomposer_build_test { // addressparser -namespace addressparser_test { +function addressparser_test() { const input = 'andris@tr.ee'; const result = addressparser(input); const address: string = result[0].address; @@ -1082,7 +1081,7 @@ namespace addressparser_test { // base64 -namespace base64_test { +function base64_test() { base64.encode('abcd= ÕÄÖÜ'); base64.encode(new Buffer([0x00, 0x01, 0x02, 0x20, 0x03])); @@ -1090,7 +1089,7 @@ namespace base64_test { // fetch -namespace fetch_test { +function fetch_test() { fetch('http://localhost/'); fetch('http://localhost:/', { @@ -1110,7 +1109,7 @@ namespace fetch_test { // fetch/cookies -namespace fetch_cookies_test { +function fetch_cookies_test() { const biskviit = new Cookies(); biskviit.getPath('/'); @@ -1171,7 +1170,7 @@ namespace fetch_cookies_test { // mime-funcs -namespace mime_funcs_test { +function mime_funcs_test() { mimeFuncs.isPlainText('abc'); mimeFuncs.hasLongerLines('abc\ndef', 5); @@ -1204,7 +1203,7 @@ namespace mime_funcs_test { // mime-types -namespace mime_types_test { +function mime_types_test() { mimeTypes.detectExtension(false); mimeTypes.detectExtension('unknown'); @@ -1214,7 +1213,7 @@ namespace mime_types_test { // qp -namespace qp_test { +function qp_test() { qp.encode('abcd= ÕÄÖÜ'); qp.encode(new Buffer([0x00, 0x01, 0x02, 0x20, 0x03])); @@ -1222,7 +1221,7 @@ namespace qp_test { // shared -namespace shared_getLogger_test { +function shared_getLogger_test() { shared.getLogger({ logger: false }); @@ -1233,7 +1232,7 @@ namespace shared_getLogger_test { console.log(options.secure, options.auth!.user, options.tls!.rejectUnauthorized); } -namespace shared_resolveContent_string_test { +function shared_resolveContent_string_test() { const mail = { data: { html: '

Tere, tere

vana kere!

\n' @@ -1249,7 +1248,7 @@ namespace shared_resolveContent_string_test { shared.resolveContent(mail.data, 'html').then((value) => console.log(value)); } -namespace shared_resolveContent_buffer_test { +function shared_resolveContent_buffer_test() { const mail = { data: { html: new Buffer('

Tere, tere

vana kere!

\n') @@ -1265,7 +1264,7 @@ namespace shared_resolveContent_buffer_test { shared.resolveContent(mail.data, 'html').then((value) => console.log(value)); } -namespace shared_assing_test { +function shared_assign_test() { const target = { a: 1, b: 2, @@ -1285,13 +1284,13 @@ namespace shared_assing_test { shared.assign(target, arg1, arg2); } -namespace shared_encodeXText_test { +function shared_encodeXText_test() { shared.encodeXText('teretere'); } // well-known -namespace well_known_test { +function well_known_test() { const options = wellKnown('Gmail'); if (options) { console.log(options.host, options.port, options.secure); diff --git a/types/paho-mqtt/index.d.ts b/types/paho-mqtt/index.d.ts index 0963c5d7e5..fed67ff262 100644 --- a/types/paho-mqtt/index.d.ts +++ b/types/paho-mqtt/index.d.ts @@ -279,16 +279,13 @@ declare namespace Paho { */ onMessageArrived: OnMessageHandler; - /* tslint:disable:unified-signatures */ - /* these cannot actually be neatly unified */ - /** * @param host - the address of the messaging server as a DNS name or dotted decimal IP address. * @param port - the port number to connect to * @param path - the path on the host to connect to - only used if host is not a URI. Default: '/mqtt'. * @param clientId - the Messaging client identifier, between 1 and 23 characters in length. */ - constructor(host: string, port: number, path: string, clientId: string); + constructor(host: string, port: number, path: string, clientId: string); // tslint:disable-line unified-signatures (these cannot actually be neatly unified) /** * @param host - the address of the messaging server as a DNS name or dotted decimal IP address. @@ -303,8 +300,6 @@ declare namespace Paho { */ constructor(hostUri: string, clientId: string); - /* tslint:enable:unified-signatures */ - /** * Connect this Messaging client to its server. * @throws {InvalidState} if the client is not in disconnected state. The client must have received diff --git a/types/passport-facebook/passport-facebook-tests.ts b/types/passport-facebook/passport-facebook-tests.ts index 52ef4095a1..a93a163230 100644 --- a/types/passport-facebook/passport-facebook-tests.ts +++ b/types/passport-facebook/passport-facebook-tests.ts @@ -1,4 +1,3 @@ -/* tslint:disable */ /** * Created by jcabresos on 4/19/2014. */ @@ -7,21 +6,21 @@ import facebook = require('passport-facebook'); import express = require('express'); // just some test model -var User = { - findOrCreate(id:string, provider:string, callback:(err:any, user:any) => void): void { - callback(null, {username:'james'}); +const User = { + findOrCreate(id: string, provider: string, callback: (err: any, user: any) => void): void { + callback(null, { username: 'james' }); } -} +}; passport.use(new facebook.Strategy({ clientID: process.env.PASSPORT_FACEBOOK_CLIENT_ID, clientSecret: process.env.PASSPORT_FACEBOOK_CLIENT_SECRET, callbackURL: process.env.PASSPORT_FACEBOOK_CALLBACK_URL }, - function(accessToken:string, refreshToken:string, profile:facebook.Profile, done:(error:any, user?:any) => void) { - User.findOrCreate(profile.id, profile.provider, function(err, user) { - if (err) { return done(err); } - done(null, user); + (accessToken: string, refreshToken: string, profile: facebook.Profile, done: (error: any, user?: any) => void) => { + User.findOrCreate(profile.id, profile.provider, (err, user) => { + if (err) done(err); + else done(null, user); }); }) ); @@ -32,10 +31,10 @@ passport.use(new facebook.Strategy({ callbackURL: process.env.PASSPORT_FACEBOOK_CALLBACK_URL, passReqToCallback: true }, - function(req: express.Request, accessToken:string, refreshToken:string, profile:facebook.Profile, done:(error:any, user?:any) => void) { - User.findOrCreate(profile.id, profile.provider, function(err, user) { - if (err) { return done(err); } - done(null, user); + (req: express.Request, accessToken: string, refreshToken: string, profile: facebook.Profile, done: (error: any, user?: any) => void) => { + User.findOrCreate(profile.id, profile.provider, (err, user) => { + if (err) done(err); + else done(null, user); }); }) ); @@ -45,7 +44,7 @@ passport.use(new facebook.Strategy({ clientSecret: process.env.PASSPORT_FACEBOOK_CLIENT_SECRET, callbackURL: process.env.PASSPORT_FACEBOOK_CALLBACK_URL }, - function(accessToken:string, refreshToken:string, profile:facebook.Profile, done:(error:any, user?:any, info?:any) => void) { + (accessToken: string, refreshToken: string, profile: facebook.Profile, done: (error: any, user?: any, info?: any) => void) => { done(null, false, { message: 'Some error.' }); }) ); diff --git a/types/phonegap/phonegap-tests.ts b/types/phonegap/phonegap-tests.ts index f507e3bd71..180740d5e3 100644 --- a/types/phonegap/phonegap-tests.ts +++ b/types/phonegap/phonegap-tests.ts @@ -78,8 +78,7 @@ function test_camera() { function test_capture() { var capture = navigator.device.capture; function captureSuccess(mediaFiles) { - var i, len; - for (i = 0, len = mediaFiles.length; i < len; i += 1) { + for (let i = 0; i < mediaFiles.length; i += 1) { uploadFile(mediaFiles[i]); } } @@ -108,9 +107,8 @@ function test_capture() { var options = { limit: 3, duration: 10 }; navigator.device.capture.captureAudio(captureSuccess, captureError, options); function captureSuccess2(mediaFiles) { - var i, path, len; - for (i = 0, len = mediaFiles.length; i < len; i += 1) { - path = mediaFiles[i].fullPath; + for (let i = 0; i < mediaFiles.length; i += 1) { + const path = mediaFiles[i].fullPath; } }; function captureError2(error) { @@ -231,7 +229,7 @@ function test_contacts() { contact.remove(onSuccess, onError); } function test_contacts2() { - + function onSuccess(contacts) { for (var i = 0; i < contacts.length; i++) { console.log("Display Name = " + contacts[i].displayName); diff --git a/types/pkijs/pkijs-tests.ts b/types/pkijs/pkijs-tests.ts index 1ac9fce13c..6b7b73bb00 100644 --- a/types/pkijs/pkijs-tests.ts +++ b/types/pkijs/pkijs-tests.ts @@ -22,11 +22,12 @@ function formatPEM(pemString: string) { const stringLength = pemString.length; let resultString = ""; - for (let i = 0, count = 0; i < stringLength; i++ , count++) { + for (let i = 0, count = 0; i < stringLength; i++) { if (count > 63) { resultString = `${resultString}\r\n`; count = 0; } + count++; resultString = resultString + pemString[i]; } diff --git a/types/pouchdb-adapter-fruitdown/index.d.ts b/types/pouchdb-adapter-fruitdown/index.d.ts index 63484904ac..1cf2b78952 100644 --- a/types/pouchdb-adapter-fruitdown/index.d.ts +++ b/types/pouchdb-adapter-fruitdown/index.d.ts @@ -6,9 +6,6 @@ /// -// TODO: Fixing this lint error will require a large refactor -/* tslint:disable:no-single-declare-module */ - declare namespace PouchDB { namespace FruitDOWNAdapter { interface FruitDOWNAdapterConfiguration diff --git a/types/pouchdb-adapter-fruitdown/tslint.json b/types/pouchdb-adapter-fruitdown/tslint.json index 53941b68e7..702315d133 100644 --- a/types/pouchdb-adapter-fruitdown/tslint.json +++ b/types/pouchdb-adapter-fruitdown/tslint.json @@ -3,6 +3,8 @@ "rules": { // TODOs "no-declare-current-package": false, - "no-unnecessary-generics": false + "no-unnecessary-generics": false, + // TODO: Fixing this lint error will require a large refactor + "no-single-declare-module": false } } diff --git a/types/pouchdb-adapter-http/index.d.ts b/types/pouchdb-adapter-http/index.d.ts index 07eb5bbbfb..74ea96fd5b 100644 --- a/types/pouchdb-adapter-http/index.d.ts +++ b/types/pouchdb-adapter-http/index.d.ts @@ -6,9 +6,6 @@ /// -// TODO: Fixing this lint error will require a large refactor -/* tslint:disable:no-single-declare-module */ - declare namespace PouchDB { namespace HttpAdapter { interface HttpAdapterConfiguration diff --git a/types/pouchdb-adapter-http/tslint.json b/types/pouchdb-adapter-http/tslint.json index 53941b68e7..702315d133 100644 --- a/types/pouchdb-adapter-http/tslint.json +++ b/types/pouchdb-adapter-http/tslint.json @@ -3,6 +3,8 @@ "rules": { // TODOs "no-declare-current-package": false, - "no-unnecessary-generics": false + "no-unnecessary-generics": false, + // TODO: Fixing this lint error will require a large refactor + "no-single-declare-module": false } } diff --git a/types/pouchdb-adapter-idb/index.d.ts b/types/pouchdb-adapter-idb/index.d.ts index e8ad990b45..4de6491c64 100644 --- a/types/pouchdb-adapter-idb/index.d.ts +++ b/types/pouchdb-adapter-idb/index.d.ts @@ -6,9 +6,6 @@ /// -// TODO: Fixing this lint error will require a large refactor -/* tslint:disable:no-single-declare-module */ - declare namespace PouchDB { namespace Core { interface DatabaseInfo { diff --git a/types/pouchdb-adapter-idb/tslint.json b/types/pouchdb-adapter-idb/tslint.json index 53941b68e7..702315d133 100644 --- a/types/pouchdb-adapter-idb/tslint.json +++ b/types/pouchdb-adapter-idb/tslint.json @@ -3,6 +3,8 @@ "rules": { // TODOs "no-declare-current-package": false, - "no-unnecessary-generics": false + "no-unnecessary-generics": false, + // TODO: Fixing this lint error will require a large refactor + "no-single-declare-module": false } } diff --git a/types/pouchdb-adapter-leveldb/index.d.ts b/types/pouchdb-adapter-leveldb/index.d.ts index a3dd9ad6d7..087cc4170a 100644 --- a/types/pouchdb-adapter-leveldb/index.d.ts +++ b/types/pouchdb-adapter-leveldb/index.d.ts @@ -6,9 +6,6 @@ /// -// TODO: Fixing this lint error will require a large refactor -/* tslint:disable:no-single-declare-module */ - declare namespace PouchDB { namespace LevelDbAdapter { interface LevelDbAdapterConfiguration extends Configuration.LocalDatabaseConfiguration { diff --git a/types/pouchdb-adapter-leveldb/tslint.json b/types/pouchdb-adapter-leveldb/tslint.json index 53941b68e7..702315d133 100644 --- a/types/pouchdb-adapter-leveldb/tslint.json +++ b/types/pouchdb-adapter-leveldb/tslint.json @@ -3,6 +3,8 @@ "rules": { // TODOs "no-declare-current-package": false, - "no-unnecessary-generics": false + "no-unnecessary-generics": false, + // TODO: Fixing this lint error will require a large refactor + "no-single-declare-module": false } } diff --git a/types/pouchdb-adapter-localstorage/index.d.ts b/types/pouchdb-adapter-localstorage/index.d.ts index 04823352de..5f4da8b599 100644 --- a/types/pouchdb-adapter-localstorage/index.d.ts +++ b/types/pouchdb-adapter-localstorage/index.d.ts @@ -6,9 +6,6 @@ /// -// TODO: Fixing this lint error will require a large refactor -/* tslint:disable:no-single-declare-module */ - declare namespace PouchDB { namespace LocalStorageAdapter { interface LocalStorageAdapterConfiguration diff --git a/types/pouchdb-adapter-localstorage/tslint.json b/types/pouchdb-adapter-localstorage/tslint.json index 53941b68e7..702315d133 100644 --- a/types/pouchdb-adapter-localstorage/tslint.json +++ b/types/pouchdb-adapter-localstorage/tslint.json @@ -3,6 +3,8 @@ "rules": { // TODOs "no-declare-current-package": false, - "no-unnecessary-generics": false + "no-unnecessary-generics": false, + // TODO: Fixing this lint error will require a large refactor + "no-single-declare-module": false } } diff --git a/types/pouchdb-adapter-memory/index.d.ts b/types/pouchdb-adapter-memory/index.d.ts index 3cbc0c664e..41149a2dc6 100644 --- a/types/pouchdb-adapter-memory/index.d.ts +++ b/types/pouchdb-adapter-memory/index.d.ts @@ -6,9 +6,6 @@ /// -// TODO: Fixing this lint error will require a large refactor -/* tslint:disable:no-single-declare-module */ - declare namespace PouchDB { namespace MemoryAdapter { interface MemoryAdapterConfiguration diff --git a/types/pouchdb-adapter-memory/tslint.json b/types/pouchdb-adapter-memory/tslint.json index 53941b68e7..702315d133 100644 --- a/types/pouchdb-adapter-memory/tslint.json +++ b/types/pouchdb-adapter-memory/tslint.json @@ -3,6 +3,8 @@ "rules": { // TODOs "no-declare-current-package": false, - "no-unnecessary-generics": false + "no-unnecessary-generics": false, + // TODO: Fixing this lint error will require a large refactor + "no-single-declare-module": false } } diff --git a/types/pouchdb-adapter-node-websql/index.d.ts b/types/pouchdb-adapter-node-websql/index.d.ts index 25dcc7d8cf..442a5326a2 100644 --- a/types/pouchdb-adapter-node-websql/index.d.ts +++ b/types/pouchdb-adapter-node-websql/index.d.ts @@ -7,10 +7,5 @@ /// /// -// TODO: Fixing this lint error will require a large refactor -/* tslint:disable:no-single-declare-module */ - -declare module 'pouchdb-adapter-node-websql' { - const plugin: PouchDB.Plugin; - export = plugin; -} +declare const plugin: PouchDB.Plugin; +export = plugin; diff --git a/types/pouchdb-adapter-node-websql/tslint.json b/types/pouchdb-adapter-node-websql/tslint.json index 0dab80c69a..3db14f85ea 100644 --- a/types/pouchdb-adapter-node-websql/tslint.json +++ b/types/pouchdb-adapter-node-websql/tslint.json @@ -1,7 +1 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - // TODOs - "no-declare-current-package": false - } -} +{ "extends": "dtslint/dt.json" } diff --git a/types/pouchdb-adapter-websql/index.d.ts b/types/pouchdb-adapter-websql/index.d.ts index b7cc5af65b..2b0e2b6178 100644 --- a/types/pouchdb-adapter-websql/index.d.ts +++ b/types/pouchdb-adapter-websql/index.d.ts @@ -6,9 +6,6 @@ /// -// TODO: Fixing this lint error will require a large refactor -/* tslint:disable:no-single-declare-module */ - declare namespace PouchDB { namespace Core { interface DatabaseInfo { diff --git a/types/pouchdb-adapter-websql/tslint.json b/types/pouchdb-adapter-websql/tslint.json index 53941b68e7..702315d133 100644 --- a/types/pouchdb-adapter-websql/tslint.json +++ b/types/pouchdb-adapter-websql/tslint.json @@ -3,6 +3,8 @@ "rules": { // TODOs "no-declare-current-package": false, - "no-unnecessary-generics": false + "no-unnecessary-generics": false, + // TODO: Fixing this lint error will require a large refactor + "no-single-declare-module": false } } diff --git a/types/pouchdb-browser/index.d.ts b/types/pouchdb-browser/index.d.ts index 3872feef98..d41a41b341 100644 --- a/types/pouchdb-browser/index.d.ts +++ b/types/pouchdb-browser/index.d.ts @@ -11,10 +11,5 @@ /// /// -// TODO: Fixing this lint error will require a large refactor -/* tslint:disable:no-single-declare-module */ - -declare module 'pouchdb-browser' { - const PouchDb: PouchDB.Static; - export = PouchDb; -} +declare const PouchDb: PouchDB.Static; +export = PouchDb; diff --git a/types/pouchdb-browser/tslint.json b/types/pouchdb-browser/tslint.json index 0dab80c69a..3db14f85ea 100644 --- a/types/pouchdb-browser/tslint.json +++ b/types/pouchdb-browser/tslint.json @@ -1,7 +1 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - // TODOs - "no-declare-current-package": false - } -} +{ "extends": "dtslint/dt.json" } diff --git a/types/pouchdb-find/index.d.ts b/types/pouchdb-find/index.d.ts index 7e974b8921..7f5f925f8c 100644 --- a/types/pouchdb-find/index.d.ts +++ b/types/pouchdb-find/index.d.ts @@ -6,9 +6,6 @@ /// -// TODO: Fixing this lint error will require a large refactor -/* tslint:disable:no-single-declare-module */ - declare namespace PouchDB { namespace Find { interface ConditionOperators { diff --git a/types/pouchdb-find/tslint.json b/types/pouchdb-find/tslint.json index 0512521e8a..9e12c34857 100644 --- a/types/pouchdb-find/tslint.json +++ b/types/pouchdb-find/tslint.json @@ -3,6 +3,8 @@ "rules": { // TODOs "no-declare-current-package": false, - "no-any-union": false + "no-any-union": false, + // TODO: Fixing this lint error will require a large refactor + "no-single-declare-module": false } } diff --git a/types/pouchdb-http/index.d.ts b/types/pouchdb-http/index.d.ts index 8c5dfd3104..cccf52a21f 100644 --- a/types/pouchdb-http/index.d.ts +++ b/types/pouchdb-http/index.d.ts @@ -7,10 +7,5 @@ /// /// -// TODO: Fixing this lint error will require a large refactor -/* tslint:disable:no-single-declare-module */ - -declare module 'pouchdb-http' { - const PouchDb: PouchDB.Static; - export = PouchDb; -} +declare const PouchDb: PouchDB.Static; +export = PouchDb; diff --git a/types/pouchdb-http/tslint.json b/types/pouchdb-http/tslint.json index 462c618bbf..3db14f85ea 100644 --- a/types/pouchdb-http/tslint.json +++ b/types/pouchdb-http/tslint.json @@ -1,7 +1 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - // TODOs - "no-declare-current-package": false - } -} +{ "extends": "dtslint/dt.json" } diff --git a/types/pouchdb-mapreduce/index.d.ts b/types/pouchdb-mapreduce/index.d.ts index 430cafe8d6..cb8b1caf2a 100644 --- a/types/pouchdb-mapreduce/index.d.ts +++ b/types/pouchdb-mapreduce/index.d.ts @@ -6,9 +6,6 @@ /// -// TODO: Fixing this lint error will require a large refactor -/* tslint:disable:no-single-declare-module */ - declare namespace PouchDB { type BuiltInReducers = '_sum' | '_count' | '_stats'; /** diff --git a/types/pouchdb-mapreduce/tslint.json b/types/pouchdb-mapreduce/tslint.json index ba44da1be1..d1bd797c5e 100644 --- a/types/pouchdb-mapreduce/tslint.json +++ b/types/pouchdb-mapreduce/tslint.json @@ -3,6 +3,8 @@ "rules": { // TODOs "no-any-union": false, - "no-declare-current-package": false + "no-declare-current-package": false, + // TODO: Fixing this lint error will require a large refactor + "no-single-declare-module": false } } diff --git a/types/pouchdb-node/index.d.ts b/types/pouchdb-node/index.d.ts index c0f48adb23..7df750b742 100644 --- a/types/pouchdb-node/index.d.ts +++ b/types/pouchdb-node/index.d.ts @@ -10,9 +10,6 @@ /// /// -// TODO: Fixing this lint error will require a large refactor -/* tslint:disable:no-single-declare-module */ - declare namespace PouchDB { namespace Core { interface DatabaseInfo { diff --git a/types/pouchdb-node/tslint.json b/types/pouchdb-node/tslint.json index 462c618bbf..fac23123f9 100644 --- a/types/pouchdb-node/tslint.json +++ b/types/pouchdb-node/tslint.json @@ -2,6 +2,8 @@ "extends": "dtslint/dt.json", "rules": { // TODOs - "no-declare-current-package": false + "no-declare-current-package": false, + // TODO: Fixing this lint error will require a large refactor + "no-single-declare-module": false } } diff --git a/types/pouchdb-replication/index.d.ts b/types/pouchdb-replication/index.d.ts index aeddd61872..b0611b840a 100644 --- a/types/pouchdb-replication/index.d.ts +++ b/types/pouchdb-replication/index.d.ts @@ -6,9 +6,6 @@ /// -// TODO: Fixing this lint error will require a large refactor -/* tslint:disable:no-single-declare-module */ - declare namespace PouchDB { namespace Replication { interface ReplicateOptions { diff --git a/types/pouchdb-replication/tslint.json b/types/pouchdb-replication/tslint.json index 998776b847..fac23123f9 100644 --- a/types/pouchdb-replication/tslint.json +++ b/types/pouchdb-replication/tslint.json @@ -1,7 +1,9 @@ { - "extends": "dtslint/dt.json", - "rules": { + "extends": "dtslint/dt.json", + "rules": { // TODOs - "no-declare-current-package": false - } + "no-declare-current-package": false, + // TODO: Fixing this lint error will require a large refactor + "no-single-declare-module": false + } } diff --git a/types/pouchdb-upsert/index.d.ts b/types/pouchdb-upsert/index.d.ts index 60b2409ff0..3a34073935 100644 --- a/types/pouchdb-upsert/index.d.ts +++ b/types/pouchdb-upsert/index.d.ts @@ -6,9 +6,6 @@ /// -// TODO: Fixing this lint error will require a large refactor -/* tslint:disable:no-single-declare-module */ - declare namespace PouchDB { interface Database { /** diff --git a/types/pouchdb-upsert/tslint.json b/types/pouchdb-upsert/tslint.json index 53941b68e7..702315d133 100644 --- a/types/pouchdb-upsert/tslint.json +++ b/types/pouchdb-upsert/tslint.json @@ -3,6 +3,8 @@ "rules": { // TODOs "no-declare-current-package": false, - "no-unnecessary-generics": false + "no-unnecessary-generics": false, + // TODO: Fixing this lint error will require a large refactor + "no-single-declare-module": false } } diff --git a/types/pouchdb/index.d.ts b/types/pouchdb/index.d.ts index 3f17f3ff3d..cdc34a44df 100644 --- a/types/pouchdb/index.d.ts +++ b/types/pouchdb/index.d.ts @@ -19,10 +19,5 @@ /// /// -// TODO: Fixing this lint error will require a large refactor -/* tslint:disable:no-single-declare-module */ - -declare module 'pouchdb' { - const plugin: PouchDB.Static; - export = plugin; -} +declare const plugin: PouchDB.Static; +export = plugin; diff --git a/types/pouchdb/tslint.json b/types/pouchdb/tslint.json index 57b8e6b18b..3db14f85ea 100644 --- a/types/pouchdb/tslint.json +++ b/types/pouchdb/tslint.json @@ -1,6 +1 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "no-declare-current-package": false - } -} +{ "extends": "dtslint/dt.json" } diff --git a/types/q/q-tests.ts b/types/q/q-tests.ts index f54f913e07..aedacef09c 100644 --- a/types/q/q-tests.ts +++ b/types/q/q-tests.ts @@ -1,4 +1,3 @@ -/* tslint:disable:no-namespace */ /// import Q = require('q'); @@ -177,7 +176,7 @@ Q.nbind(kitty.find, kitty)({cute: true}).done((kitties: any[]) => { /** * Test: Can "rethrow" rejected promises */ -namespace TestCanRethrowRejectedPromises { +function TestCanRethrowRejectedPromises() { interface Foo { a: number; } diff --git a/types/selenium-webdriver/v2/test/chrome.ts b/types/selenium-webdriver/v2/test/chrome.ts index f9c896fbee..e651bb83bb 100644 --- a/types/selenium-webdriver/v2/test/chrome.ts +++ b/types/selenium-webdriver/v2/test/chrome.ts @@ -1,4 +1,3 @@ -/* tslint:disable */ import * as chrome from 'selenium-webdriver/chrome'; import * as remote from 'selenium-webdriver/remote'; import * as webdriver from 'selenium-webdriver'; @@ -10,7 +9,7 @@ function TestChromeDriver() { new remote.DriverService('executable', new chrome.Options()), new webdriver.promise.ControlFlow()); - var baseDriver: webdriver.WebDriver = driver; + const baseDriver: webdriver.WebDriver = driver; } function TestChromeOptions() { @@ -44,7 +43,7 @@ function TestServiceBuilder() { var builder: chrome.ServiceBuilder = new chrome.ServiceBuilder(); builder = new chrome.ServiceBuilder('exe'); - var anything: any = builder.build(); + const anything: any = builder.build(); builder = builder.usingPort(8080); builder = builder.setAdbPort(5037); builder = builder.loggingTo('path'); @@ -57,6 +56,6 @@ function TestServiceBuilder() { } function TestChromeModule() { - var service: any = chrome.getDefaultService(); + const service: any = chrome.getDefaultService(); chrome.setDefaultService(new remote.DriverService('executable', new chrome.Options())); } diff --git a/types/selenium-webdriver/v2/test/firefox.ts b/types/selenium-webdriver/v2/test/firefox.ts index 2f3aeb928c..2a4d5a1d0d 100644 --- a/types/selenium-webdriver/v2/test/firefox.ts +++ b/types/selenium-webdriver/v2/test/firefox.ts @@ -1,4 +1,3 @@ -/* tslint:disable */ import * as firefox from 'selenium-webdriver/firefox'; import * as remote from 'selenium-webdriver/remote'; import * as webdriver from 'selenium-webdriver'; @@ -8,7 +7,7 @@ function TestBinary() { binary = new firefox.Binary('exe'); binary.addArguments('A', 'B', 'C'); - var promise: webdriver.promise.Promise = binary.kill(); + const promise: webdriver.promise.Promise = binary.kill(); binary.launch('profile').then((result: any) => {}); } @@ -17,7 +16,7 @@ function TestFirefoxDriver() { driver = new firefox.Driver(webdriver.Capabilities.firefox()); driver = new firefox.Driver(webdriver.Capabilities.firefox(), new webdriver.promise.ControlFlow()); - var baseDriver: webdriver.WebDriver = driver; + const baseDriver: webdriver.WebDriver = driver; } function TestFirefoxOptions() { @@ -29,7 +28,7 @@ function TestFirefoxOptions() { options = options.setProfile('profile'); options = options.setProfile(new firefox.Profile()); options = options.setProxy({ proxyType: 'proxy' }); - var capabilities: webdriver.Capabilities = options.toCapabilities(); + const capabilities: webdriver.Capabilities = options.toCapabilities(); } function TestFirefoxProfile() { @@ -40,8 +39,8 @@ function TestFirefoxProfile() { profile.addExtension('ext'); bool = profile.assumeUntrustedCertIssuer(); profile.encode().then((prof: string) => {}); - var num: number = profile.getPort(); - var anything: any = profile.getPreference('key'); + const num: number = profile.getPort(); + const anything: any = profile.getPreference('key'); bool = profile.nativeEventsEnabled(); profile.setAcceptUntrustedCerts(true); profile.setAssumeUntrustedCertIssuer(true); diff --git a/types/selenium-webdriver/v2/test/index.ts b/types/selenium-webdriver/v2/test/index.ts index ba783f86fc..98d98519eb 100644 --- a/types/selenium-webdriver/v2/test/index.ts +++ b/types/selenium-webdriver/v2/test/index.ts @@ -1,4 +1,3 @@ -/* tslint:disable */ import * as webdriver from 'selenium-webdriver'; import * as chrome from 'selenium-webdriver/chrome'; import * as firefox from 'selenium-webdriver/firefox'; @@ -7,21 +6,21 @@ import * as executors from 'selenium-webdriver/executors'; import * as testing from 'selenium-webdriver/testing'; function TestExecutors() { - var exec: webdriver.Executor = executors.createExecutor('url'); - var promise: webdriver.promise.Promise; + let exec: webdriver.Executor = executors.createExecutor('url'); + const promise: webdriver.promise.Promise = {} as any; exec = executors.createExecutor(promise); } function TestBuilder() { - var builder: webdriver.Builder = new webdriver.Builder(); + let builder: webdriver.Builder = new webdriver.Builder(); - var driver: webdriver.WebDriver = builder.build(); + const driver: webdriver.WebDriver = builder.build(); builder = builder.forBrowser('name'); builder = builder.forBrowser('name', 'version'); builder = builder.forBrowser('name', 'version', 'platform'); - var cap: webdriver.Capabilities = builder.getCapabilities(); - var str: string = builder.getServerUrl(); + const cap: webdriver.Capabilities = builder.getCapabilities(); + const str: string = builder.getServerUrl(); builder = builder.setAlertBehavior('behavior'); builder = builder.setChromeOptions(new chrome.Options()); @@ -38,13 +37,13 @@ function TestBuilder() { } function TestActionSequence() { - var driver: webdriver.WebDriver = new webdriver.Builder(). + const driver: webdriver.WebDriver = new webdriver.Builder(). withCapabilities(webdriver.Capabilities.chrome()). build(); - var sequence: webdriver.ActionSequence = new webdriver.ActionSequence(driver); - var element: webdriver.WebElement = new webdriver.WebElement(driver, 'elementId'); - var promise: webdriver.promise.Promise; + let sequence: webdriver.ActionSequence = new webdriver.ActionSequence(driver); + let element: webdriver.WebElement = new webdriver.WebElement(driver, 'elementId'); + const promise: webdriver.promise.Promise = {} as any; element = new webdriver.WebElement(driver, promise); // Click @@ -94,12 +93,12 @@ function TestActionSequence() { } function TestTouchSequence() { - var driver: webdriver.WebDriver = new webdriver.Builder(). + const driver: webdriver.WebDriver = new webdriver.Builder(). withCapabilities(webdriver.Capabilities.chrome()). build(); - var element: webdriver.WebElement = new webdriver.WebElement(driver, 'elementId'); + const element: webdriver.WebElement = new webdriver.WebElement(driver, 'elementId'); - var sequence: webdriver.TouchSequence = new webdriver.TouchSequence(driver); + let sequence: webdriver.TouchSequence = new webdriver.TouchSequence(driver); sequence = sequence.tap(element); sequence = sequence.doubleTap(element); @@ -116,11 +115,11 @@ function TestTouchSequence() { } function TestAlert() { - var driver: webdriver.WebDriver = new webdriver.Builder(). + const driver: webdriver.WebDriver = new webdriver.Builder(). withCapabilities(webdriver.Capabilities.chrome()). build(); - var alert: webdriver.Alert = driver.switchTo().alert(); + const alert: webdriver.Alert = driver.switchTo().alert(); alert.accept().then(() => {}); alert.dismiss().then(() => {}); @@ -129,7 +128,7 @@ function TestAlert() { } function TestBrowser() { - var browser: string; + let browser: string; browser = webdriver.Browser.ANDROID; browser = webdriver.Browser.CHROME; @@ -144,7 +143,7 @@ function TestBrowser() { } function TestButton() { - var button: string; + let button: string; button = webdriver.Button.LEFT; button = webdriver.Button.MIDDLE; @@ -152,14 +151,14 @@ function TestButton() { } function TestCapabilities() { - var capabilities: webdriver.Capabilities = new webdriver.Capabilities(); + let capabilities: webdriver.Capabilities = new webdriver.Capabilities(); capabilities = new webdriver.Capabilities(webdriver.Capabilities.chrome()); - var objCapabilities: any = {}; + const objCapabilities: any = {}; objCapabilities[webdriver.Capability.BROWSER_NAME] = webdriver.Browser.PHANTOM_JS; capabilities = new webdriver.Capabilities(objCapabilities); - var anything: any = capabilities.get(webdriver.Capability.SECURE_SSL); - var check: boolean = capabilities.has(webdriver.Capability.SECURE_SSL); + let anything: any = capabilities.get(webdriver.Capability.SECURE_SSL); + const check: boolean = capabilities.has(webdriver.Capability.SECURE_SSL); capabilities = capabilities.merge(capabilities); capabilities = capabilities.merge(objCapabilities); capabilities = capabilities.set(webdriver.Capability.VERSION, { abc: 'def' }); @@ -187,7 +186,7 @@ function TestCapabilities() { } function TestCapability() { - var capability: string; + let capability: string; capability = webdriver.Capability.ACCEPT_SSL_CERTS; capability = webdriver.Capability.BROWSER_NAME; @@ -209,24 +208,24 @@ function TestCapability() { } function TestCommand() { - var command: webdriver.Command = new webdriver.Command(webdriver.CommandName.ADD_COOKIE); + let command: webdriver.Command = new webdriver.Command(webdriver.CommandName.ADD_COOKIE); - var name: string = command.getName(); - var param: any = command.getParameter('param'); + const name: string = command.getName(); + const param: any = command.getParameter('param'); - var params: any = command.getParameters(); + const params: any = command.getParameters(); command = command.setParameter('param', 123); command = command.setParameters({ param: 123 }); } function TestDeferredExecutor() { - var promise: webdriver.promise.Promise; - var executor: webdriver.DeferredExecutor = new webdriver.DeferredExecutor(promise); + const promise: webdriver.promise.Promise = {} as any; + const executor: webdriver.DeferredExecutor = new webdriver.DeferredExecutor(promise); } function TestCommandName() { - var command: string; + let command: string; command = webdriver.CommandName.ACCEPT_ALERT; command = webdriver.CommandName.ADD_COOKIE; @@ -327,21 +326,21 @@ function TestCommandName() { } function TestEventEmitter() { - var emitter: webdriver.EventEmitter = new webdriver.EventEmitter(); + let emitter: webdriver.EventEmitter = new webdriver.EventEmitter(); - var callback = (a: number, b: number, c: number) => {}; + const callback = (a: number, b: number, c: number) => {}; emitter = emitter.addListener('ABC', callback); emitter = emitter.addListener('ABC', callback, this); emitter.emit('ABC', 1, 2, 3); - var listeners = emitter.listeners('ABC'); + const listeners = emitter.listeners('ABC'); if (listeners[0].oneshot) { listeners[0].fn.apply(listeners[0].scope); } - var length: number = listeners.length; - var listenerInfo = listeners[0]; + const length: number = listeners.length; + const listenerInfo = listeners[0]; if (listenerInfo.oneshot) { listenerInfo.fn.apply(listenerInfo.scope, [1, 2, 3]); } @@ -359,7 +358,7 @@ function TestEventEmitter() { } function TestKey() { - var key: string; + let key: string; key = webdriver.Key.ADD; key = webdriver.Key.ALT; @@ -424,13 +423,13 @@ function TestKey() { } function TestBy() { - var driver: webdriver.WebDriver = new webdriver.Builder(). + const driver: webdriver.WebDriver = new webdriver.Builder(). withCapabilities(webdriver.Capabilities.chrome()). build(); - var locator: webdriver.By = new webdriver.By('class name', 'class'); + let locator: webdriver.By = new webdriver.By('class name', 'class'); - var str: string = locator.toString(); + const str: string = locator.toString(); locator = webdriver.By.className('class'); locator = webdriver.By.css('css'); @@ -442,9 +441,9 @@ function TestBy() { locator = webdriver.By.xpath('xpath'); // Can import 'By' without import declarations - var By = webdriver.By; + const By = webdriver.By; - var locatorHash: webdriver.ByHash; + let locatorHash: webdriver.ByHash; locatorHash = { className: 'class' }; locatorHash = { css: 'css' }; locatorHash = { id: 'id' }; @@ -458,53 +457,53 @@ function TestBy() { } function TestSession() { - var session: webdriver.Session = new webdriver.Session('ABC', webdriver.Capabilities.android()); - var capabilitiesObj: any = {}; + let session: webdriver.Session = new webdriver.Session('ABC', webdriver.Capabilities.android()); + const capabilitiesObj: any = {}; capabilitiesObj[webdriver.Capability.BROWSER_NAME] = webdriver.Browser.ANDROID; capabilitiesObj[webdriver.Capability.PLATFORM] = 'ANDROID'; session = new webdriver.Session('ABC', capabilitiesObj); - var capabilities: webdriver.Capabilities = session.getCapabilities(); - var capability: any = session.getCapability(webdriver.Capability.BROWSER_NAME); - var id: string = session.getId(); - var data: string = session.toJSON(); + const capabilities: webdriver.Capabilities = session.getCapabilities(); + const capability: any = session.getCapability(webdriver.Capability.BROWSER_NAME); + const id: string = session.getId(); + const data: string = session.toJSON(); } function TestUnhandledAlertError() { - var someFunc = (error: webdriver.UnhandledAlertError) => { - var baseError: Error = error; - var str: string = error.getAlertText(); + const someFunc = (error: webdriver.UnhandledAlertError) => { + const baseError: Error = error; + let str: string = error.getAlertText(); str = error.toString(); }; } function TestWebDriverFileDetector() { - var driver: webdriver.WebDriver = new webdriver.Builder(). + const driver: webdriver.WebDriver = new webdriver.Builder(). withCapabilities(webdriver.Capabilities.chrome()). build(); - var fileDetector: webdriver.FileDetector = new webdriver.FileDetector(); + const fileDetector: webdriver.FileDetector = new webdriver.FileDetector(); fileDetector.handleFile(driver, 'path/to/file').then((path: string) => {}); } function TestWebDriverLogs() { - var driver: webdriver.WebDriver = new webdriver.Builder(). + const driver: webdriver.WebDriver = new webdriver.Builder(). withCapabilities(webdriver.Capabilities.chrome()). build(); - var logs: webdriver.Logs = new webdriver.Logs(driver); + const logs: webdriver.Logs = new webdriver.Logs(driver); logs.get(webdriver.logging.Type.BROWSER).then((entries: webdriver.logging.Entry[]) => {}); logs.getAvailableLogTypes().then((types: string[]) => {}); } function TestWebDriverNavigation() { - var driver: webdriver.WebDriver = new webdriver.Builder(). + const driver: webdriver.WebDriver = new webdriver.Builder(). withCapabilities(webdriver.Capabilities.chrome()). build(); - var navigation: webdriver.Navigation = new webdriver.Navigation(driver); + const navigation: webdriver.Navigation = new webdriver.Navigation(driver); navigation.back().then(() => {}); navigation.forward().then(() => {}); @@ -513,12 +512,12 @@ function TestWebDriverNavigation() { } function TestWebDriverOptions() { - var driver: webdriver.WebDriver = new webdriver.Builder(). + const driver: webdriver.WebDriver = new webdriver.Builder(). withCapabilities(webdriver.Capabilities.chrome()). build(); - var options: webdriver.Options = new webdriver.Options(driver); - var promise: webdriver.promise.Promise; + const options: webdriver.Options = new webdriver.Options(driver); + let promise: webdriver.promise.Promise; // Add Cookie promise = options.addCookie('name', 'value'); @@ -533,33 +532,33 @@ function TestWebDriverOptions() { options.getCookie('name').then((cookies: webdriver.IWebDriverOptionsCookie) => {}); options.getCookies().then((cookies: webdriver.IWebDriverOptionsCookie[]) => {}); - var logs: webdriver.Logs = options.logs(); - var timeouts: webdriver.Timeouts = options.timeouts(); - var window: webdriver.Window = options.window(); + const logs: webdriver.Logs = options.logs(); + const timeouts: webdriver.Timeouts = options.timeouts(); + const window: webdriver.Window = options.window(); } function TestWebDriverTargetLocator() { - var driver: webdriver.WebDriver = new webdriver.Builder(). + const driver: webdriver.WebDriver = new webdriver.Builder(). withCapabilities(webdriver.Capabilities.chrome()). build(); - var locator: webdriver.TargetLocator = new webdriver.TargetLocator(driver); - var promise: webdriver.promise.Promise; + const locator: webdriver.TargetLocator = new webdriver.TargetLocator(driver); + let promise: webdriver.promise.Promise; - var element: webdriver.WebElement = locator.activeElement(); - var alert: webdriver.Alert = locator.alert(); + const element: webdriver.WebElement = locator.activeElement(); + const alert: webdriver.Alert = locator.alert(); promise = locator.defaultContent(); promise = locator.frame(1); promise = locator.window('nameOrHandle'); } function TestWebDriverTimeouts() { - var driver: webdriver.WebDriver = new webdriver.Builder(). + const driver: webdriver.WebDriver = new webdriver.Builder(). withCapabilities(webdriver.Capabilities.chrome()). build(); - var timeouts: webdriver.Timeouts = new webdriver.Timeouts(driver); - var promise: webdriver.promise.Promise; + const timeouts: webdriver.Timeouts = new webdriver.Timeouts(driver); + let promise: webdriver.promise.Promise; promise = timeouts.implicitlyWait(123); promise = timeouts.pageLoadTimeout(123); @@ -567,14 +566,14 @@ function TestWebDriverTimeouts() { } function TestWebDriverWindow() { - var driver: webdriver.WebDriver = new webdriver.Builder(). + const driver: webdriver.WebDriver = new webdriver.Builder(). withCapabilities(webdriver.Capabilities.chrome()). build(); - var window: webdriver.Window = new webdriver.Window(driver); - var locationPromise: webdriver.promise.Promise; - var sizePromise: webdriver.promise.Promise; - var voidPromise: webdriver.promise.Promise; + const window: webdriver.Window = new webdriver.Window(driver); + let locationPromise: webdriver.promise.Promise; + let sizePromise: webdriver.promise.Promise; + let voidPromise: webdriver.promise.Promise; locationPromise = window.getPosition(); sizePromise = window.getSize(); @@ -584,26 +583,26 @@ function TestWebDriverWindow() { } function TestWebDriver() { - var session: webdriver.Session = new webdriver.Session('ABC', webdriver.Capabilities.android()); - var sessionPromise: webdriver.promise.Promise; - var executor: webdriver.Executor = executors.createExecutor('http://someserver'); - var flow: webdriver.promise.ControlFlow = new webdriver.promise.ControlFlow(); - var driver: webdriver.WebDriver = new webdriver.WebDriver(session, executor); + const session: webdriver.Session = new webdriver.Session('ABC', webdriver.Capabilities.android()); + const sessionPromise: webdriver.promise.Promise = {} as any; + const executor: webdriver.Executor = executors.createExecutor('http://someserver'); + let flow: webdriver.promise.ControlFlow = new webdriver.promise.ControlFlow(); + let driver: webdriver.WebDriver = new webdriver.WebDriver(session, executor); driver = new webdriver.WebDriver(session, executor, flow); driver = new webdriver.WebDriver(sessionPromise, executor); driver = new webdriver.WebDriver(sessionPromise, executor, flow); - var voidPromise: webdriver.promise.Promise; - var stringPromise: webdriver.promise.Promise; - var booleanPromise: webdriver.promise.Promise; + let voidPromise: webdriver.promise.Promise; + let stringPromise: webdriver.promise.Promise; + let booleanPromise: webdriver.promise.Promise; - var actions: webdriver.ActionSequence = driver.actions(); - var touchActions: webdriver.TouchSequence = driver.touchActions(); + const actions: webdriver.ActionSequence = driver.actions(); + const touchActions: webdriver.TouchSequence = driver.touchActions(); // call stringPromise = driver.call(() => 'value'); stringPromise = driver.call(() => stringPromise); - stringPromise = driver.call(() => { var d: any = this; return 'value'; }, driver); + stringPromise = driver.call(() => { const d: any = this; return 'value'; }, driver); stringPromise = driver.call((a: number) => 'value', driver, 1); voidPromise = driver.close(); @@ -622,7 +621,7 @@ function TestWebDriver() { stringPromise = driver.executeScript((a: number) => {}, 1); // findElement - var element: webdriver.WebElement; + let element: webdriver.WebElement; element = driver.findElement(webdriver.By.id('ABC')); element = driver.findElement(webdriver.By.js('function(){}')); @@ -642,11 +641,11 @@ function TestWebDriver() { booleanPromise = driver.isElementPresent(webdriver.By.className('ABC')); booleanPromise = driver.isElementPresent(webdriver.By.js('function(){}')); - var options: webdriver.Options = driver.manage(); - var navigation: webdriver.Navigation = driver.navigate(); - var locator: webdriver.TargetLocator = driver.switchTo(); + const options: webdriver.Options = driver.manage(); + const navigation: webdriver.Navigation = driver.navigate(); + const locator: webdriver.TargetLocator = driver.switchTo(); - var fileDetector: webdriver.FileDetector = new webdriver.FileDetector(); + const fileDetector: webdriver.FileDetector = new webdriver.FileDetector(); driver.setFileDetector(fileDetector); voidPromise = driver.quit(); @@ -654,7 +653,7 @@ function TestWebDriver() { voidPromise = driver.sleep(123); stringPromise = driver.takeScreenshot(); - var booleanCondition: webdriver.until.Condition; + const booleanCondition: webdriver.until.Condition = {} as any; booleanPromise = driver.wait(booleanPromise); booleanPromise = driver.wait(booleanCondition); booleanPromise = driver.wait((driver: webdriver.WebDriver) => true); @@ -668,24 +667,24 @@ function TestWebDriver() { } function TestSerializable() { - var serializable: webdriver.Serializable; - var serial: string | webdriver.promise.IThenable = serializable.serialize(); + const serializable: webdriver.Serializable = {} as any; + const serial: string | webdriver.promise.IThenable = serializable.serialize(); } function TestWebElement() { - var driver: webdriver.WebDriver = new webdriver.Builder(). + let driver: webdriver.WebDriver = new webdriver.Builder(). withCapabilities(webdriver.Capabilities.chrome()). build(); - var promise: webdriver.promise.Promise; - var element: webdriver.WebElement; + const promise: webdriver.promise.Promise = {} as any; + let element: webdriver.WebElement; element = new webdriver.WebElement(driver, 'elementId'); element = new webdriver.WebElement(driver, promise); - var voidPromise: webdriver.promise.Promise; - var stringPromise: webdriver.promise.Promise; - var booleanPromise: webdriver.promise.Promise; + let voidPromise: webdriver.promise.Promise; + let stringPromise: webdriver.promise.Promise; + let booleanPromise: webdriver.promise.Promise; voidPromise = element.clear(); voidPromise = element.click(); @@ -720,16 +719,16 @@ function TestWebElement() { } function TestWebElementPromise() { - var driver: webdriver.WebDriver = new webdriver.Builder(). + const driver: webdriver.WebDriver = new webdriver.Builder(). withCapabilities(webdriver.Capabilities.chrome()). build(); - var elementPromise: webdriver.WebElementPromise = driver.findElement(webdriver.By.id('id')); + const elementPromise: webdriver.WebElementPromise = driver.findElement(webdriver.By.id('id')); elementPromise.cancel(); elementPromise.cancel('reason'); - var bool: boolean = elementPromise.isPending(); + const bool: boolean = elementPromise.isPending(); elementPromise.then(); elementPromise.then((element: webdriver.WebElement) => {}); @@ -742,11 +741,11 @@ function TestWebElementPromise() { } function TestLogging() { - var preferences: webdriver.logging.Preferences = new webdriver.logging.Preferences(); + const preferences: webdriver.logging.Preferences = new webdriver.logging.Preferences(); preferences.setLevel(webdriver.logging.Type.BROWSER, webdriver.logging.Level.ALL); - var prefs: any = preferences.toJSON(); + const prefs: any = preferences.toJSON(); - var level: webdriver.logging.Level = webdriver.logging.getLevel('OFF'); + let level: webdriver.logging.Level = webdriver.logging.getLevel('OFF'); level = webdriver.logging.getLevel(1); level = webdriver.logging.Level.ALL; @@ -756,10 +755,10 @@ function TestLogging() { level = webdriver.logging.Level.SEVERE; level = webdriver.logging.Level.WARNING; - var name: string = level.name; - var value: number = level.value; + const name: string = level.name; + const value: number = level.value; - var type: string; + let type: string; type = webdriver.logging.Type.BROWSER; type = webdriver.logging.Type.CLIENT; type = webdriver.logging.Type.DRIVER; @@ -768,7 +767,7 @@ function TestLogging() { } function TestLoggingEntry() { - var entry: webdriver.logging.Entry; + let entry: webdriver.logging.Entry; entry = new webdriver.logging.Entry(webdriver.logging.Level.ALL, 'ABC'); entry = new webdriver.logging.Entry('ALL', 'ABC'); @@ -777,23 +776,22 @@ function TestLoggingEntry() { entry = new webdriver.logging.Entry(webdriver.logging.Level.ALL, 'ABC', 123, webdriver.logging.Type.BROWSER); entry = new webdriver.logging.Entry('ALL', 'ABC', 123, webdriver.logging.Type.BROWSER); - var entryObj: any = entry.toJSON(); + const entryObj: any = entry.toJSON(); - var message: string = entry.message; - var timestamp: number = entry.timestamp; - var type: string = entry.type; + const message: string = entry.message; + const timestamp: number = entry.timestamp; + const type: string = entry.type; } function TestPromiseModule() { - var cancellationError: webdriver.promise.CancellationError = new webdriver.promise.CancellationError(); + let cancellationError: webdriver.promise.CancellationError = new webdriver.promise.CancellationError(); cancellationError = new webdriver.promise.CancellationError('message'); - var str: string = cancellationError.message; + let str: string = cancellationError.message; str = cancellationError.name; - var stringPromise: webdriver.promise.Promise; - var numberPromise: webdriver.promise.Promise; - var booleanPromise: webdriver.promise.Promise; - var voidPromise: webdriver.promise.Promise; + let stringPromise: webdriver.promise.Promise; + let numberPromise: webdriver.promise.Promise; + let voidPromise: webdriver.promise.Promise; webdriver.promise.all([stringPromise]).then((values: string[]) => {}); @@ -811,7 +809,7 @@ function TestPromiseModule() { webdriver.promise.consume((a: number, b: number, c: number) => 5, this, 1, 2, 3) .then((value: number) => {}); - var numbersPromise: webdriver.promise.Promise = webdriver.promise.filter([1, 2, 3], (element: number, type: any, index: number, arr: number[]) => { + let numbersPromise: webdriver.promise.Promise = webdriver.promise.filter([1, 2, 3], (element: number, type: any, index: number, arr: number[]) => { return true; }); numbersPromise = webdriver.promise.filter([1, 2, 3], (element: number, type: any, index: number, arr: number[]) => { @@ -837,11 +835,11 @@ function TestPromiseModule() { return true; }, this); - var flow: webdriver.promise.ControlFlow = webdriver.promise.controlFlow(); + const flow: webdriver.promise.ControlFlow = webdriver.promise.controlFlow(); stringPromise = webdriver.promise.createFlow((newFlow: webdriver.promise.ControlFlow) => 'ABC'); - var deferred: webdriver.promise.Deferred; + let deferred: webdriver.promise.Deferred; deferred = webdriver.promise.defer(); deferred = webdriver.promise.defer(); @@ -857,8 +855,8 @@ function TestPromiseModule() { stringPromise = webdriver.promise.fullyResolved('abc'); - var bool: boolean = webdriver.promise.isGenerator(() => {}); - var isPromise: boolean = webdriver.promise.isPromise('ABC'); + const bool: boolean = webdriver.promise.isGenerator(() => {}); + const isPromise: boolean = webdriver.promise.isPromise('ABC'); stringPromise = webdriver.promise.rejected('{a: 123}'); @@ -868,18 +866,18 @@ function TestPromiseModule() { } function TestUntilModule() { - var driver: webdriver.WebDriver = new webdriver.Builder(). + const driver: webdriver.WebDriver = new webdriver.Builder(). withCapabilities(webdriver.Capabilities.chrome()). build(); - var conditionB: webdriver.until.Condition = new webdriver.until.Condition('message', (driver: webdriver.WebDriver) => true); - var conditionBBase: webdriver.until.Condition = conditionB; - var conditionWebElement: webdriver.until.Condition; - var conditionWebElements: webdriver.until.Condition; + let conditionB: webdriver.until.Condition = new webdriver.until.Condition('message', (driver: webdriver.WebDriver) => true); + const conditionBBase: webdriver.until.Condition = conditionB; + let conditionWebElement: webdriver.until.Condition; + let conditionWebElements: webdriver.until.Condition; conditionB = webdriver.until.ableToSwitchToFrame(5); - var conditionAlert: webdriver.until.Condition = webdriver.until.alertIsPresent(); - var el: webdriver.WebElement = driver.findElement(webdriver.By.id('id')); + const conditionAlert: webdriver.until.Condition = webdriver.until.alertIsPresent(); + const el: webdriver.WebElement = driver.findElement(webdriver.By.id('id')); conditionB = webdriver.until.elementIsDisabled(el); conditionB = webdriver.until.elementIsEnabled(el); conditionB = webdriver.until.elementIsNotSelected(el); @@ -899,31 +897,31 @@ function TestUntilModule() { } function TestControlFlow() { - var flow: webdriver.promise.ControlFlow; + let flow: webdriver.promise.ControlFlow; flow = new webdriver.promise.ControlFlow(); - var emitter: webdriver.EventEmitter = flow; + const emitter: webdriver.EventEmitter = flow; - var eventType: string; + let eventType: string; eventType = webdriver.promise.ControlFlow.EventType.IDLE; eventType = webdriver.promise.ControlFlow.EventType.RESET; eventType = webdriver.promise.ControlFlow.EventType.SCHEDULE_TASK; eventType = webdriver.promise.ControlFlow.EventType.UNCAUGHT_EXCEPTION; - var stringPromise: webdriver.promise.Promise; + let stringPromise: webdriver.promise.Promise; stringPromise = flow.execute(() => 'value'); stringPromise = flow.execute(() => stringPromise); stringPromise = flow.execute(() => stringPromise, 'Description'); - var schedule: string; + let schedule: string; schedule = flow.toString(); schedule = flow.getSchedule(); schedule = flow.getSchedule(true); flow.reset(); - var voidPromise: webdriver.promise.Promise = flow.timeout(123); + let voidPromise: webdriver.promise.Promise = flow.timeout(123); voidPromise = flow.timeout(123, 'Description'); stringPromise = flow.wait(stringPromise); @@ -934,12 +932,12 @@ function TestControlFlow() { } function TestDeferred() { - var deferred: webdriver.promise.Deferred; + let deferred: webdriver.promise.Deferred; deferred = new webdriver.promise.Deferred(); deferred = new webdriver.promise.Deferred(new webdriver.promise.ControlFlow()); - var promise: webdriver.promise.Promise = deferred.promise; + const promise: webdriver.promise.Promise = deferred.promise; deferred.errback(new Error('Error')); deferred.errback('Error'); @@ -950,15 +948,15 @@ function TestDeferred() { } function TestPromiseClass() { - var controlFlow: webdriver.promise.ControlFlow; - var promise: webdriver.promise.Promise; - promise = new webdriver.promise.Promise((resolve: (value: string) => void, reject: () => void) => {}); - promise = new webdriver.promise.Promise((resolve: (value: webdriver.promise.Promise) => void, reject: () => void) => {}); - promise = new webdriver.promise.Promise((resolve: (value: string) => void, reject: () => void) => {}, controlFlow); + const controlFlow: webdriver.promise.ControlFlow = {} as any; + let promise: webdriver.promise.Promise; + promise = new webdriver.promise.Promise((resolve: (value: string) => void, reject: (reason: any) => void) => {}); + promise = new webdriver.promise.Promise((resolve: (value: webdriver.promise.Promise) => void, reject: (reason: any) => void) => {}); + promise = new webdriver.promise.Promise((resolve: (value: string) => void, reject: (readon: any) => void) => {}, controlFlow); promise.cancel('Abort'); - var isPending: boolean = promise.isPending(); + const isPending: boolean = promise.isPending(); promise = promise.then(); promise = promise.then((a: string) => 'cde'); @@ -971,13 +969,13 @@ function TestPromiseClass() { } function TestThenableClass() { - var thenable: webdriver.promise.Promise = new webdriver.promise.Promise((resolve, reject) => { + let thenable: webdriver.promise.Promise = new webdriver.promise.Promise((resolve, reject) => { resolve('a'); }); thenable.cancel('Abort'); - var isPending: boolean = thenable.isPending(); + const isPending: boolean = thenable.isPending(); thenable = thenable.then((a: string) => 'cde'); thenable = thenable.then((a: string) => 'cde', (e: any) => {}); @@ -989,7 +987,7 @@ function TestThenableClass() { } function TestErrorCode() { - var errorCode: number; + let errorCode: number; errorCode = new webdriver.error.ElementNotSelectableError().code(); errorCode = new webdriver.error.ElementNotVisibleError().code(); @@ -1018,8 +1016,8 @@ function TestErrorCode() { } async function TestAsyncAwaitable() { - var thenable: webdriver.promise.Promise = new webdriver.promise.Promise((resolve, reject) => resolve('foo')); - var str: string = await thenable; + const thenable: webdriver.promise.Promise = new webdriver.promise.Promise((resolve, reject) => resolve('foo')); + const str: string = await thenable; } function TestTestingModule() { diff --git a/types/selenium-webdriver/v2/test/remote.ts b/types/selenium-webdriver/v2/test/remote.ts index 08722d5b1f..a783101290 100644 --- a/types/selenium-webdriver/v2/test/remote.ts +++ b/types/selenium-webdriver/v2/test/remote.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ - import * as remote from "selenium-webdriver/remote"; import * as webdriver from "selenium-webdriver"; diff --git a/types/semantic-ui-form/semantic-ui-form-tests.ts b/types/semantic-ui-form/semantic-ui-form-tests.ts index 76b9b95968..01d951a706 100644 --- a/types/semantic-ui-form/semantic-ui-form-tests.ts +++ b/types/semantic-ui-form/semantic-ui-form-tests.ts @@ -1,5 +1,3 @@ -/* tslint:disable:only-arrow-functions */ - function test_form_static() { $.fn.form.settings.error!.method = 'method'; $.fn.form.settings.namespace = 'namespace'; @@ -216,7 +214,7 @@ function adding_rules_programmatically() { { // lets toggle some validation based on button $('.add.example .ui.positive.button') - .on('click', function() { + .on('click', () => { $('.add.example .ui.form') // adding longform .form('add rule', 'gender', { @@ -233,7 +231,7 @@ function adding_rules_programmatically() { } { $('.add.example .ui.negative.button') - .on('click', function() { + .on('click', () => { $('.add.example .ui.form') // removing multiple at once .form('remove fields', ['gender', 'password']); diff --git a/types/smtp-server/index.d.ts b/types/smtp-server/index.d.ts index b333e2ab61..6e71373260 100644 --- a/types/smtp-server/index.d.ts +++ b/types/smtp-server/index.d.ts @@ -269,17 +269,15 @@ export class SMTPServer extends EventEmitter { constructor(options?: SMTPServerOptions); /** Start listening on selected port and interface */ - /* tslint:disable:unified-signatures */ listen(port?: number, hostname?: string, backlog?: number, listeningListener?: () => void): net.Server; listen(port?: number, hostname?: string, listeningListener?: () => void): net.Server; - listen(port?: number, backlog?: number, listeningListener?: () => void): net.Server; + listen(port?: number, backlog?: number, listeningListener?: () => void): net.Server; // tslint:disable-line unified-signatures listen(port?: number, listeningListener?: () => void): net.Server; listen(path: string, backlog?: number, listeningListener?: () => void): net.Server; listen(path: string, listeningListener?: () => void): void; listen(options: net.ListenOptions, listeningListener?: () => void): net.Server; - listen(handle: any, backlog?: number, listeningListener?: () => void): net.Server; - listen(handle: any, listeningListener?: () => void): net.Server; - /* tslint:enable:unified-signatures */ + listen(handle: any, backlog?: number, listeningListener?: () => void): net.Server; // tslint:disable-line unified-signatures + listen(handle: any, listeningListener?: () => void): net.Server; // tslint:disable-line unified-signatures /** Closes the server */ close(callback: (err?: Error | null) => void): void; diff --git a/types/swagger-schema-official/index.d.ts b/types/swagger-schema-official/index.d.ts index c3675d7755..48173c0883 100644 --- a/types/swagger-schema-official/index.d.ts +++ b/types/swagger-schema-official/index.d.ts @@ -165,7 +165,7 @@ export interface BaseSecurity { description?: string; } -// tslint:disable:no-empty-interface +// tslint:disable-next-line no-empty-interface export interface BasicAuthenticationSecurity extends BaseSecurity { // It's the exact same interface as BaseSecurity } diff --git a/types/swagger-schema-official/swagger-schema-official-tests.ts b/types/swagger-schema-official/swagger-schema-official-tests.ts index 8b2c57bd58..dd8b1a4485 100644 --- a/types/swagger-schema-official/swagger-schema-official-tests.ts +++ b/types/swagger-schema-official/swagger-schema-official-tests.ts @@ -1,7 +1,5 @@ import * as swagger from "swagger-schema-official"; -// tslint:disable:max-line-length - const apiExample: swagger.Spec = { "swagger": "2.0", "info": { diff --git a/types/swagger-schema-official/tslint.json b/types/swagger-schema-official/tslint.json index 30297e76ae..4de1adc227 100644 --- a/types/swagger-schema-official/tslint.json +++ b/types/swagger-schema-official/tslint.json @@ -1,6 +1,7 @@ { "extends": "dtslint/dt.json", "rules": { + "max-line-length": false, "object-literal-key-quotes": false } }