martinsvb / ng2-summernote

Angula 2.0 summernote wysiwyg editor integration
14 stars 12 forks source link

fix tslint issues #14

Closed akkumar closed 2 years ago

akkumar commented 7 years ago

bunch of tslint issues reported. Commit includes the fix for some of them:

.//node_modules/ng2-summernote/ng2-summernote.ts[140, 7]: if statements must be braced
.//node_modules/ng2-summernote/ng2-summernote.ts[49, 28]: Type string trivially inferred from a string literal, remove type annotation
.//node_modules/ng2-summernote/ng2-summernote.ts[79, 1]: trailing whitespace
.//node_modules/ng2-summernote/ng2-summernote.ts[123, 1]: trailing whitespace
.//node_modules/ng2-summernote/ng2-summernote.ts[132, 7]: trailing whitespace
.//node_modules/ng2-summernote/ng2-summernote.ts[135, 7]: trailing whitespace
.//node_modules/ng2-summernote/ng2-summernote.ts[139, 65]: trailing whitespace
.//node_modules/ng2-summernote/ng2-summernote.ts[160, 1]: trailing whitespace
.//node_modules/ng2-summernote/ng2-summernote.ts[179, 1]: trailing whitespace
.//node_modules/ng2-summernote/ng2-summernote.ts[103, 25]: Identifier 'insertImg' is never reassigned; use 'const' instead of 'let'.
.//node_modules/ng2-summernote/ng2-summernote.ts[90, 17]: Identifier 'data' is never reassigned; use 'const' instead of 'let'.
.//node_modules/ng2-summernote/ng2-summernote.ts[113, 13]: Identifier 'data' is never reassigned; use 'const' instead of 'let'.
.//node_modules/ng2-summernote/ng2-summernote.ts[118, 13]: Identifier 'headers' is never reassigned; use 'const' instead of 'let'.
.//node_modules/ng2-summernote/ng2-summernote.ts[122, 13]: Identifier 'options' is never reassigned; use 'const' instead of 'let'.
.//node_modules/ng2-summernote/ng2-summernote.ts[193, 25]: Identifier 'attributes' is never reassigned; use 'const' instead of 'let'.
.//node_modules/ng2-summernote/ng2-summernote.ts[49, 37]: " should be '
.//node_modules/ng2-summernote/ng2-summernote.ts[91, 25]: " should be '
.//node_modules/ng2-summernote/ng2-summernote.ts[92, 25]: " should be '
.//node_modules/ng2-summernote/ng2-summernote.ts[92, 35]: " should be '
.//node_modules/ng2-summernote/ng2-summernote.ts[93, 25]: " should be '
.//node_modules/ng2-summernote/ng2-summernote.ts[93, 34]: " should be '
.//node_modules/ng2-summernote/ng2-summernote.ts[94, 25]: " should be '
.//node_modules/ng2-summernote/ng2-summernote.ts[97, 23]: " should be '
.//node_modules/ng2-summernote/ng2-summernote.ts[105, 33]: " should be '
.//node_modules/ng2-summernote/ng2-summernote.ts[114, 21]: " should be '
.//node_modules/ng2-summernote/ng2-summernote.ts[150, 21]: " should be '
.//node_modules/ng2-summernote/ng2-summernote.ts[195, 51]: " should be '
.//node_modules/ng2-summernote/ng2-summernote.ts[195, 48]: == should be ===
.//node_modules/ng2-summernote/ng2-summernote.ts[19, 13]: The selector of the component "Ng2Summernote" should have prefix "app" (https://angular.io/styleguide#style-02-07)
.//node_modules/ng2-summernote/ng2-summernote.ts[71, 5]: Implement lifecycle hook interface AfterViewInit for method ngAfterViewInit in class Ng2Summernote (https://angular.io/styleguide#style-09-01)
.//node_modules/ng2-summernote/ng2-summernote.ts[86, 5]: Implement lifecycle hook interface OnDestroy for method ngOnDestroy in class Ng2Summernote (https://angular.io/styleguide#style-09-01)
.//node_modules/ng2-summernote/ng2-summernote.ts[30, 14]: The name of the class Ng2Summernote should end with the suffix Component (https://angular.io/styleguide#style-02-03)