chore(): update to ionic-rules/strict

This commit is contained in:
Manu Mtz.-Almeida
2018-07-29 23:10:26 +02:00
parent 7292fc7d38
commit c1b61d0fee
148 changed files with 354 additions and 407 deletions

View File

@ -1,10 +1,10 @@
import { Component, Element, EventListenerEnable, Listen, Method, Prop, QueueApi, State, Watch } from '@stencil/core';
import { Cell, DomRenderFn, HeaderFn, ItemHeightFn, ItemRenderFn, VirtualNode } from '../../interface';
import { CellType } from './virtual-scroll-interface';
import { Range, calcCells, calcHeightIndex, doRender, findCellIndex, getRange, getShouldUpdate, getViewport, inplaceUpdate, positionForIndex, resizeBuffer, updateVDom } from './virtual-scroll-utils';
@Component({
tag: 'ion-virtual-scroll',
styleUrl: 'virtual-scroll.scss'
@ -318,7 +318,6 @@ export class VirtualScroll {
}
}
private calcCells() {
if (!this.items) {
return;
@ -381,7 +380,7 @@ export class VirtualScroll {
render() {
const renderItem = this.renderItem;
if (renderItem) {
return this.virtualDom.map((node) => {
return this.virtualDom.map(node => {
const item = this.renderVirtualNode(node) as any;
const classes = ['virtual-item'];
if (!item.vattrs) {