Skip to content

Commit

Permalink
fix: (false) linter errors, temporary disable linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Nov 19, 2018
1 parent 2b758fe commit 3d6ad7d
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/conductor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ export class Conductor extends EventEmitter {
let getFilteredLayers = (layers: TimelineState['LLayers'], device: Device) => {
let filteredState = {}
_.each(layers, (o: TimelineResolvedObject, layerId: string) => {
const oExt = o as TimelineResolvedObjectExtended
const oExt: TimelineResolvedObjectExtended = o
let mapping: Mapping = this._mapping[o.LLayer + '']
if (!mapping && oExt.originalLLayer) {
mapping = this._mapping[oExt.originalLLayer]
Expand Down
4 changes: 2 additions & 2 deletions src/devices/atem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,9 @@ export class AtemDevice extends DeviceWithState<DeviceState> {
_.each(sortedLayers, ({ tlObject, layerName }) => {
const tlObjectExt = tlObject as TimelineResolvedObjectExtended
const content = tlObject.resolved || tlObject.content
let mapping = this.mapping[layerName] as MappingAtem
let mapping = this.mapping[layerName] as MappingAtem // tslint:disable-line
if (!mapping && tlObjectExt.originalLLayer) {
mapping = this.mapping[tlObjectExt.originalLLayer] as MappingAtem
mapping = this.mapping[tlObjectExt.originalLLayer] as MappingAtem // tslint:disable-line
}

if (mapping) {
Expand Down
2 changes: 2 additions & 0 deletions src/devices/casparCG.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ export class CasparCGDevice extends DeviceWithState<TimelineState> {
const caspar = new StateNS.State()

_.each(timelineState.LLayers, (layer: TimelineResolvedObject, layerName: string) => {
// tslint:disable-next-line
const layerExt = layer as TimelineResolvedObjectExtended
let foundMapping: Mapping = this.mapping[layerName]
if (!foundMapping && layerExt.isBackground && layerExt.originalLLayer) {
Expand Down Expand Up @@ -308,6 +309,7 @@ export class CasparCGDevice extends DeviceWithState<TimelineState> {
stateLayer = l
} else if (layer.content.type === TimelineContentTypeCasparCg.ROUTE) {
if (layer.content.attributes.LLayer) {
// tslint:disable-next-line
let routeMapping = this.mapping[layer.content.attributes.LLayer] as MappingCasparCG
if (routeMapping) {
layer.content.attributes.channel = routeMapping.channel
Expand Down
6 changes: 3 additions & 3 deletions src/devices/httpSend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export class HttpSendDevice extends DeviceWithState<TimelineState> {
// added!
commands.push({
commandName: 'added',
content: newLayer.content as HttpSendCommandContent,
content: newLayer.content as HttpSendCommandContent, // tslint:disable-line
context: `added: ${newLayer.id}`
})
} else {
Expand All @@ -160,7 +160,7 @@ export class HttpSendDevice extends DeviceWithState<TimelineState> {
// changed!
commands.push({
commandName: 'changed',
content: newLayer.content as HttpSendCommandContent,
content: newLayer.content as HttpSendCommandContent, // tslint:disable-line
context: `changed: ${newLayer.id}`
})
}
Expand All @@ -173,7 +173,7 @@ export class HttpSendDevice extends DeviceWithState<TimelineState> {
// removed!
commands.push({
commandName: 'removed',
content: oldLayer.content as HttpSendCommandContent,
content: oldLayer.content as HttpSendCommandContent, // tslint:disable-line
context: `removed: ${oldLayer.id}`
})
}
Expand Down
2 changes: 1 addition & 1 deletion src/devices/hyperdeck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export class HyperdeckDevice extends DeviceWithState<DeviceState> {

_.each(sortedLayers, ({ tlObject, layerName }) => {
const content = tlObject.resolved || tlObject.content
const mapping = this.mapping[layerName] as MappingHyperdeck
const mapping = this.mapping[layerName] as MappingHyperdeck // tslint:disable-line

if (mapping) {
switch (mapping.mappingType) {
Expand Down
2 changes: 1 addition & 1 deletion src/devices/lawo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export class LawoDevice extends DeviceWithState<TimelineState> {
const lawoState: LawoState = {}

_.each(state.LLayers, (tlObject: TimelineObjLawo, layerName: string) => {
const mapping: MappingLawo | undefined = this.mapping[layerName] as MappingLawo
const mapping: MappingLawo | undefined = this.mapping[layerName] as MappingLawo // tslint:disable-line
if (mapping && mapping.identifier && mapping.device === DeviceType.LAWO) {

if (tlObject.content.type === TimelineContentTypeLawo.SOURCE) {
Expand Down
2 changes: 1 addition & 1 deletion src/devices/panasonicPTZ.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class PanasonicPtzDevice extends DeviceWithState<TimelineState> {
const ptzState: PanasonicPtzState = this._getDefaultState()

_.each(state.LLayers, (tlObject: TimelineResolvedObject, layerName: string) => {
const mapping: MappingPanasonicPtz | undefined = this.mapping[layerName] as MappingPanasonicPtz
const mapping: MappingPanasonicPtz | undefined = this.mapping[layerName] as MappingPanasonicPtz // tslint:disable-line
if (mapping && mapping.device === DeviceType.PANASONIC_PTZ) {
if (mapping.mappingType === MappingPanasonicPtzType.PRESET) {
let tlObjectSource = tlObject as TimelineResolvedObject & TimelineObjPanasonicPtzPreset
Expand Down

0 comments on commit 3d6ad7d

Please sign in to comment.