DefinitelyTyped/types/angular/tslint.json
Caleb St-Denis 514a27de01 angular - Separate interfaces for each lifecycle hook (#16299)
* Separate interfaces for each lifecycle hook

Having one required hook per interface leads to greater type safety than
having a single IController interface with all properties optional.
Namely, the IController interface will not help you if you misspell a hook
name. (A slight improvement, admittedly, but an improvement nonetheless.)

This is closer to how the typings are done for lifecycle hooks in ng2.

* Use `dtslint`

* Fix trailing whitespace
2017-05-03 12:02:48 -07:00

20 lines
535 B
JSON

{
"extends": "dtslint/dt.json",
"rules": {
"class-name": true,
"indent": [true, "spaces"],
"quotemark": [true, "single"],
"variable-name": [true, "check-format"],
// Below are all TODOs
"callable-types": false,
"ban-types": false,
"interface-name": false,
"jsdoc-format": false,
"max-line-length": false,
"no-empty-interface": false,
"no-namespace": false,
"unified-signatures": false,
"void-return": false
}
}