Skip to content

Commit d2b1e7c

Browse files
committed
Update dependencies and tslint.json.
Plus correct linting issues post update.
1 parent 5a3c49e commit d2b1e7c

File tree

6 files changed

+71
-62
lines changed

6 files changed

+71
-62
lines changed

dijit/1.11/dijit.d.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -59,26 +59,26 @@ declare namespace dijit {
5959

6060
/* dijit/_Contained */
6161

62-
interface _Contained {
63-
/**
64-
* Returns the previous child of the parent or null if this is the
65-
* first child of the parent.
66-
*/
67-
getPreviousSibling<T extends _WidgetBase>(): T;
68-
69-
/**
70-
* Returns the next child of the parent or null if this is the last
71-
* child of the parent.
72-
*/
73-
getNextSibling<T extends _WidgetBase>(): T;
74-
75-
/**
76-
* Returns the index of this widget within its container parent.
77-
* It returns -1 if the parent does not exist or if the parent is
78-
* not a dijit/_Container.
79-
*/
80-
getIndexInParent(): number;
81-
}
62+
interface _Contained {
63+
/**
64+
* Returns the previous child of the parent or null if this is the
65+
* first child of the parent.
66+
*/
67+
getPreviousSibling<T extends _WidgetBase>(): T;
68+
69+
/**
70+
* Returns the next child of the parent or null if this is the last
71+
* child of the parent.
72+
*/
73+
getNextSibling<T extends _WidgetBase>(): T;
74+
75+
/**
76+
* Returns the index of this widget within its container parent.
77+
* It returns -1 if the parent does not exist or if the parent is
78+
* not a dijit/_Container.
79+
*/
80+
getIndexInParent(): number;
81+
}
8282

8383
/* dijit/_Container */
8484

dijit/1.11/layout.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -472,29 +472,29 @@ declare namespace dijit {
472472
* Specifies that this widget should be the initially displayed pane.
473473
* Note: to change the selected child use `dijit/layout/StackContainer.selectChild`
474474
*/
475-
selected: boolean;
475+
selected: boolean;
476476

477477
/**
478478
* Specifies that the button to select this pane should be disabled.
479479
* Doesn't affect programmatic selection of the pane, nor does it deselect the pane if it is currently selected.
480480
*/
481-
disabled: boolean;
481+
disabled: boolean;
482482

483483
/**
484484
* True if user can close (destroy) this child, such as (for example) clicking the X on the tab.
485485
*/
486-
closable: boolean;
486+
closable: boolean;
487487

488488
/**
489489
* CSS class specifying icon to use in label associated with this pane.
490490
*/
491-
iconClass: string;
491+
iconClass: string;
492492

493493
/**
494494
* When true, display title of this widget as tab label etc., rather than just using
495495
* icon specified in iconClass.
496496
*/
497-
showTitle: boolean;
497+
showTitle: boolean;
498498
}
499499

500500
/* dijit/layout/StackController */

dojo/1.11/OpenAjax.d.ts

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
11
interface OpenAjaxLibrary {
2-
prefix: string;
3-
namespaceURI: string;
4-
version: string;
5-
extraData: any;
2+
prefix: string;
3+
namespaceURI: string;
4+
version: string;
5+
extraData: any;
66
}
77

88
interface OpenAjaxHub {
9-
implementer: string;
10-
implVersion: string;
11-
specVersion: string;
12-
implExtraData: { [prop: string]: any };
13-
libraries: { [name: string]: OpenAjaxLibrary };
14-
registerLibrary(prefix: string, nsURL: string, extra: any): void;
15-
unregisterLibrary(prefix: string): void;
9+
implementer: string;
10+
implVersion: string;
11+
specVersion: string;
12+
implExtraData: { [prop: string]: any };
13+
libraries: { [name: string]: OpenAjaxLibrary };
14+
registerLibrary(prefix: string, nsURL: string, extra: any): void;
15+
unregisterLibrary(prefix: string): void;
1616

17-
_subscriptions: { c: Object; s: any[]; };
18-
_cleanup: any[];
19-
_subIndex: number;
20-
_pubDepth: number;
17+
_subscriptions: { c: Object; s: any[]; };
18+
_cleanup: any[];
19+
_subIndex: number;
20+
_pubDepth: number;
2121

22-
subscribe(name: string, callback: (name: string, msg: any, d: any) => void, scope?: Object, subscriberData?: any, filter?: (name: string, msg: any, d: any) => boolean): string;
23-
publish(name: string, message: any): void;
24-
unsubscribe(sub: string): void;
22+
subscribe(name: string, callback: (name: string, msg: any, d: any) => void, scope?: Object, subscriberData?: any, filter?: (name: string, msg: any, d: any) => boolean): string;
23+
publish(name: string, message: any): void;
24+
unsubscribe(sub: string): void;
2525

26-
_subscribe(tree: { c: Object; s: any[]; }, path: string[], index: number, sub: Object): void;
27-
_publish(tree: { c: Object; s: any[]; }, path: string[], index: number, name: string, msg: any): void;
28-
_unsubscribe(tree: { c: Object; s: any[]; }, path: string[], index: number, sid: number): void;
26+
_subscribe(tree: { c: Object; s: any[]; }, path: string[], index: number, sub: Object): void;
27+
_publish(tree: { c: Object; s: any[]; }, path: string[], index: number, name: string, msg: any): void;
28+
_unsubscribe(tree: { c: Object; s: any[]; }, path: string[], index: number, sid: number): void;
2929

30-
/**
31-
* The following function is provided for automatic testing purposes.
32-
* It is not expected to be deployed in run-time OpenAjax Hub implementations.
33-
*/
34-
reinit(): void;
30+
/**
31+
* The following function is provided for automatic testing purposes.
32+
* It is not expected to be deployed in run-time OpenAjax Hub implementations.
33+
*/
34+
reinit(): void;
3535
}
3636

3737
interface OpenAjax {
38-
new (): OpenAjax;
39-
hub: OpenAjaxHub;
38+
new (): OpenAjax;
39+
hub: OpenAjaxHub;
4040
}
4141

4242
declare var OpenAjax: OpenAjax;

dojo/1.11/dojo.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,9 +2015,9 @@ declare namespace dojo {
20152015
*/
20162016
<T>(value: T | dojo.promise.Promise<T>): dojo.promise.Promise<T>;
20172017
<T>(value: T | dojo.promise.Promise<T>,
2018-
callback?: dojo.promise.PromiseCallback<T, T>,
2019-
errback?: dojo.promise.PromiseErrback,
2020-
progress?: dojo.promise.PromiseProgback): T | dojo.promise.Promise<T>;
2018+
callback?: dojo.promise.PromiseCallback<T, T>,
2019+
errback?: dojo.promise.PromiseErrback,
2020+
progress?: dojo.promise.PromiseProgback): T | dojo.promise.Promise<T>;
20212021
<T, U>(value: T | dojo.promise.Promise<T>,
20222022
callback?: dojo.promise.PromiseCallback<T, U>,
20232023
errback?: dojo.promise.PromiseErrback,

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"devDependencies": {
1212
"grunt": "0.4.5",
1313
"grunt-ts": "5.3.2",
14-
"grunt-tslint": "3.0.2",
15-
"tslint": "3.4.0",
16-
"typescript": "1.8.0"
14+
"grunt-tslint": "3.0.3",
15+
"tslint": "3.5.0",
16+
"typescript": "1.8.2"
1717
}
1818
}

tslint.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
11
{
22
"rules": {
3+
"align": false,
34
"ban": [],
45
"class-name": true,
56
"comment-format": [ true, "check-space" ],
67
"curly": true,
78
"eofline": true,
89
"forin": false,
10+
"indent": [ true, "tabs" ],
911
"interface-name": false,
1012
"jsdoc-format": true,
1113
"label-position": true,
1214
"label-undefined": true,
1315
"max-line-length": false,
16+
"member-access": false,
17+
"member-ordering": false,
1418
"no-any": false,
1519
"no-arg": true,
1620
"no-bitwise": false,
17-
"no-console": false,
1821
"no-consecutive-blank-lines": true,
22+
"no-console": false,
1923
"no-construct": false,
2024
"no-constructor-vars": true,
2125
"no-debugger": true,
@@ -29,18 +33,23 @@
2933
"no-trailing-whitespace": true,
3034
"no-unreachable": true,
3135
"no-unused-expression": false,
32-
"no-unused-variable": false,
36+
"no-unused-variable": true,
3337
"no-use-before-declare": false,
3438
"no-var-keyword": true,
3539
"no-var-requires": false,
40+
"object-literal-sort-keys": false,
3641
"one-line": [ true, "check-open-brace", "check-whitespace" ],
3742
"quotemark": [ true, "single" ],
3843
"radix": true,
3944
"semicolon": true,
40-
"trailing-comma": "never",
45+
"trailing-comma": [ true, {
46+
"multiline": "never",
47+
"singleline": "never"
48+
} ],
4149
"triple-equals": [ true, "allow-null-check" ],
4250
"typedef": false,
4351
"typedef-whitespace": [ true, {
52+
"call-signature": "nospace",
4453
"index-signature": "nospace",
4554
"parameter": "nospace",
4655
"property-declaration": "nospace",

0 commit comments

Comments
 (0)