mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* 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
20 lines
535 B
JSON
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
|
|
}
|
|
} |