Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Using Builder's typescript configs; fixed modal warning #1216

Merged
merged 4 commits into from
Oct 19, 2017

Conversation

Blackbaud-SteveBrush
Copy link
Member

@Blackbaud-SteveBrush Blackbaud-SteveBrush commented Oct 17, 2017

Addresses: #1217 and #1041

@Blackbaud-PaulCrowder This PR attempts to bring the TypeScript and TSLint configs closer to what Builder uses. Aside from the #1217 bugfix, no features have been changed.

@codecov-io
Copy link

codecov-io commented Oct 17, 2017

Codecov Report

Merging #1216 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #1216   +/-   ##
======================================
  Coverage     100%    100%           
======================================
  Files         355     355           
  Lines        6622    6620    -2     
  Branches      853     853           
======================================
- Hits         6622    6620    -2
Impacted Files Coverage Δ
src/modules/grid/grid-column.component.ts 100% <100%> (ø) ⬆️
src/modules/modal/modal.component.ts 100% <100%> (ø) ⬆️
...c/modules/list-filters/list-filter-inline.model.ts 100% <100%> (ø) ⬆️
src/modules/fileattachments/file-item.component.ts 100% <100%> (ø) ⬆️
src/modules/modal/modal-host.service.ts 100% <100%> (ø) ⬆️
src/modules/tiles/tile/tile.component.ts 100% <100%> (ø) ⬆️
src/modules/colorpicker/colorpicker.component.ts 100% <100%> (ø) ⬆️
src/modules/list/list-view.component.ts 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7900222...0bdbc8b. Read the comment docs.

initializeToolbar();
fixture.detectChanges();
tick();
it('should show secondary actions when specified', async(() => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes are purely tab-related.

mockDragulaService,
mockMediaQueryService
);
}());
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using a self-invoking function to avoid having an "unused local":

const dashboardService = new SkyTileDashboardService();

@Blackbaud-SteveBrush Blackbaud-SteveBrush changed the title Using Builder's tsconfig and tslint configs Using Builder's typescript configs; fixed modal warning Oct 17, 2017
public isWaiting = false;

constructor(
private waitSvc: SkyWaitService) { }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is nit-picky, but could you drop the closing parenthesis to the next line or put it all on one line? It's very common to have empty constructors in TypeScript because of the auto-property features, so this is something that I like to see consolidated to one line when possible.

constructor(
  private waitSvc: SkyWaitService
) { }

or

constructor(private waitSvc: SkyWaitService) { }

@Blackbaud-PaulCrowder Blackbaud-PaulCrowder merged commit 3aab937 into master Oct 19, 2017
@Blackbaud-PaulCrowder Blackbaud-PaulCrowder deleted the tsconfig-no-unused-locals branch October 19, 2017 17:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants