Browse Source

chore(theme-shared): regulate tslint comments in button component

pull/2318/head
mehmet-erim 7 years ago
parent
commit
9e51540061
  1. 31
      npm/ng-packs/packages/theme-shared/src/lib/components/button/button.component.ts
  2. 2
      npm/ng-packs/tslint.json

31
npm/ng-packs/packages/theme-shared/src/lib/components/button/button.component.ts

@ -1,9 +1,17 @@
import { Component, EventEmitter, Input, Output, ViewChild, ElementRef, Renderer2, OnInit } from '@angular/core'; import {
Component,
EventEmitter,
Input,
Output,
ViewChild,
ElementRef,
Renderer2,
OnInit,
} from '@angular/core';
import { ABP } from '@abp/ng.core'; import { ABP } from '@abp/ng.core';
@Component({ @Component({
selector: 'abp-button', selector: 'abp-button',
// tslint:disable-next-line: component-max-inline-declarations
template: ` template: `
<button <button
#button #button
@ -41,37 +49,28 @@ export class ButtonComponent implements OnInit {
@Input() @Input()
attributes: ABP.Dictionary<string>; attributes: ABP.Dictionary<string>;
/* // tslint:disable
* /**
*
* @deprecated use abpClick instead * @deprecated use abpClick instead
*/ */
// tslint:disable-next-line: no-output-native
@Output() readonly click = new EventEmitter<MouseEvent>(); @Output() readonly click = new EventEmitter<MouseEvent>();
/* /**
*
*
* @deprecated use abpFocus instead * @deprecated use abpFocus instead
*/ */
// tslint:disable-next-line: no-output-native // tslint:disable-next-line: no-output-native
@Output() readonly focus = new EventEmitter<FocusEvent>(); @Output() readonly focus = new EventEmitter<FocusEvent>();
/* /**
*
*
* @deprecated use abpBlur instead * @deprecated use abpBlur instead
*/ */
// tslint:disable-next-line: no-output-native
@Output() readonly blur = new EventEmitter<FocusEvent>(); @Output() readonly blur = new EventEmitter<FocusEvent>();
// tslint:enable
// tslint:disable-next-line: no-output-native
@Output() readonly abpClick = new EventEmitter<MouseEvent>(); @Output() readonly abpClick = new EventEmitter<MouseEvent>();
// tslint:disable-next-line: no-output-native
@Output() readonly abpFocus = new EventEmitter<FocusEvent>(); @Output() readonly abpFocus = new EventEmitter<FocusEvent>();
// tslint:disable-next-line: no-output-native
@Output() readonly abpBlur = new EventEmitter<FocusEvent>(); @Output() readonly abpBlur = new EventEmitter<FocusEvent>();
@ViewChild('button', { static: true }) @ViewChild('button', { static: true })

2
npm/ng-packs/tslint.json

@ -13,7 +13,7 @@
"object-literal-key-quotes": [true, "as-needed"], "object-literal-key-quotes": [true, "as-needed"],
"ordered-imports": false, "ordered-imports": false,
"trailing-comma": false, "trailing-comma": false,
"component-max-inline-declarations": [true, { "animations": 20, "styles": 10, "template": 10 }], "component-max-inline-declarations": [true, { "animations": 20, "styles": 20, "template": 20 }],
"no-forward-ref": true, "no-forward-ref": true,
"no-lifecycle-call": true, "no-lifecycle-call": true,
"no-pipe-impure": true, "no-pipe-impure": true,

Loading…
Cancel
Save