build(docs-infra): upgrade tslint to 5.15.0 and codelyzer to 5.0.0 (#29926)
This commit also changes the `tslint.json` config file to (reasonably closely) match what the cli would generate for a new app. PR Close #29926
This commit is contained in:

committed by
Andrew Kushnir

parent
eb85c8a742
commit
282167a37f
@ -6,7 +6,7 @@ import { Directive, ElementRef, EventEmitter, Output } from '@angular/core';
|
||||
export class ClickDirective {
|
||||
// #docregion output-myClick
|
||||
@Output('myClick') clicks = new EventEmitter<string>(); // @Output(alias) propertyName = ...
|
||||
// #enddocregion output-myClick
|
||||
// #enddocregion output-myClick
|
||||
|
||||
toggle = false;
|
||||
|
||||
@ -23,10 +23,12 @@ export class ClickDirective {
|
||||
@Directive({
|
||||
// #enddocregion output-myClick2
|
||||
selector: '[myClick2]',
|
||||
// tslint:disable: no-outputs-metadata-property
|
||||
// #docregion output-myClick2
|
||||
outputs: ['clicks:myClick'] // propertyName:alias
|
||||
})
|
||||
// #enddocregion output-myClick2
|
||||
// tslint:enable: no-outputs-metadata-property
|
||||
export class ClickDirective2 {
|
||||
clicks = new EventEmitter<string>();
|
||||
toggle = false;
|
||||
|
@ -8,10 +8,12 @@ import { Hero } from './hero';
|
||||
@Component({
|
||||
// #enddocregion input-output-2
|
||||
selector: 'app-hero-detail',
|
||||
// tslint:disable: no-inputs-metadata-property no-outputs-metadata-property
|
||||
// #docregion input-output-2
|
||||
inputs: ['hero'],
|
||||
outputs: ['deleteRequest'],
|
||||
// #enddocregion input-output-2
|
||||
// tslint:enable: no-inputs-metadata-property no-outputs-metadata-property
|
||||
styles: ['button {margin-left: 8px} div {margin: 8px 0} img {height:24px}'],
|
||||
// #docregion template-1
|
||||
template: `
|
||||
|
Reference in New Issue
Block a user