Skip to content

Commit

Permalink
style(design-land,design): linting
Browse files Browse the repository at this point in the history
  • Loading branch information
griest024 committed Jan 12, 2021
1 parent 1d36384 commit a955ae6
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ class WrapperComponent {
files: [

{
"name": "article-blockquote.component.html",
"content": "<daff-article>\r\n <blockquote>\r\n This is a blockquote. This can be used for customer testimonals, document references, etc.\r\n <cite>Name your quote source here.</cite>\r\n </blockquote>\r\n</daff-article>",
"language": "html"
'name': 'article-blockquote.component.html',
'content': '<daff-article>\r\n <blockquote>\r\n This is a blockquote. This can be used for customer testimonals, document references, etc.\r\n <cite>Name your quote source here.</cite>\r\n </blockquote>\r\n</daff-article>',
'language': 'html'
},
{
"name": "article-blockquote.component.ts",
"content": "import { Component, OnInit } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'article-blockquote',\r\n templateUrl: './article-blockquote.component.html'\r\n})\r\nexport class ArticleBlockquoteComponent {}\r\n",
"language": "typescript"
'name': 'article-blockquote.component.ts',
'content': 'import { Component, OnInit } from \'@angular/core\';\r\n\r\n@Component({\r\n selector: \'article-blockquote\',\r\n templateUrl: \'./article-blockquote.component.html\'\r\n})\r\nexport class ArticleBlockquoteComponent {}\r\n',
'language': 'typescript'
}
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class CodePreviewComponent {

ngOnChanges() {
if(this.example){
this.content.nativeElement.innerHtml = "";
this.content.nativeElement.innerHtml = '';
this.content.nativeElement.appendChild(document.createElement(this.example.element));
this.selectedFile = this.example.files[0];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('CodeExampleService', () => {
service.get('test').subscribe(resp => {
expect(resp).toEqual(jasmine.objectContaining({
name: undefined,
element: "undefined-example"
element: 'undefined-example'
}));
})
const req = httpMock.expectOne('/assets/design-examples/test.json');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface DgeniDesignExampleDoc {
providedIn: 'root'
})
export class CodeExampleService {
private docsLocation: string = "/assets/design-examples/";
private docsLocation = '/assets/design-examples/';
constructor(private httpClient: HttpClient) { }

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Component, OnInit, Output, EventEmitter } from '@angular/core';
styleUrls: ['./qty-dropdown.component.scss']
})
export class QtyDropdownComponent{
selectedValue: number = 1;
selectedValue = 1;

updateValue(qty:number){
if(qty % 1 != 0){
Expand Down
4 changes: 2 additions & 2 deletions apps/design-land/src/app/sidebar/sidebar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ import { DaffSidebarMode } from '@daffodil/design';
styleUrls: ['./sidebar.component.scss']
})
export class SidebarComponent {
mode: DaffSidebarMode = "push";
open: boolean = false;
mode: DaffSidebarMode = 'push';
open = false;
}
2 changes: 1 addition & 1 deletion libs/design/src/atoms/form/checkbox/checkbox.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class DaffCheckboxComponent {
* The aria-label of the checkbox. If not set by user then it defaults to the name of the checkbox.
*/
//tslint:disable-next-line:no-input-rename
@Input('aria-label') label = name;
@Input('aria-label') label: string = name;
/**
* The aria-labeledby of the checkbox.
*/
Expand Down
30 changes: 16 additions & 14 deletions libs/design/src/atoms/form/radio/radio.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class DaffRadioComponent implements OnInit {
/**
* @docs-private
*/
@HostBinding('attr.role') role = 'radio';
@HostBinding('attr.role') role = 'radio';
/**
* @docs-private
*/
Expand All @@ -40,9 +40,15 @@ export class DaffRadioComponent implements OnInit {
/**
* @docs-private
*/
_checked = false;
_checked = false;
/**
* The checked property of the radio
* Output event of selection being changed
*/
@Output() selectionChange: EventEmitter<boolean> = new EventEmitter();


/**
* The checked property of the radio
*/
@Input()
get checked() {
Expand All @@ -66,22 +72,18 @@ export class DaffRadioComponent implements OnInit {
* Name of the Radio
*/
@Input() name: string;

/**
* Used for aria-label. Default to name if user does not input a label.
*/
//tslint:disable-next-line:no-input-rename
@Input('aria-label') label = name;
//tslint:disable-next-line:no-input-rename
@Input('aria-label') label: string = name;
/**
* Used for aria-labelledby.
* Used for aria-labelledby.
*/
//tslint:disable-next-line:no-input-rename
@Input('aria-labelledby') labelledby;

/**
* Output event of selection being changed
*/
@Output() selectionChange: EventEmitter<boolean> = new EventEmitter();
//tslint:disable-next-line:no-input-rename
@Input('aria-labelledby') labelledby: string;


disabled = false;
focused = false;
Expand Down

0 comments on commit a955ae6

Please sign in to comment.