Skip to content

Commit

Permalink
fix eslint config. lint
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipivan committed Nov 25, 2024
1 parent 7b5788e commit 097a187
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
13 changes: 12 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
import { generateEslintConfig } from '@companion-module/tools/eslint/config.mjs'

export default generateEslintConfig({})
const baseConfig = await generateEslintConfig({})

const customConfig = [
...baseConfig,
{
languageOptions: {
sourceType: 'module',
},
},
]

export default customConfig
2 changes: 1 addition & 1 deletion src/feedbacks.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default async function (self) {
if (isNaN(dst) || dst < 0 || dst > self.config.dst) {
self.log(
'warn',
`feedback:checkCrosspoint:callback - invalid dest provided ${dst} from ${feedback.options.dst}`
`feedback:checkCrosspoint:callback - invalid dest provided ${dst} from ${feedback.options.dst}`,
)
return undefined
} else if (dst === 0) {
Expand Down
14 changes: 7 additions & 7 deletions src/processcmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function processCmd(chunk) {
if (reply.length != msgLength.interrogate) {
this.log(
'warn',
` Interrogate. Unexpected Length. Expected: ${msgLength.interrogate} Recieved: ${reply.length}`
` Interrogate. Unexpected Length. Expected: ${msgLength.interrogate} Recieved: ${reply.length}`,
)
return undefined
}
Expand Down Expand Up @@ -58,7 +58,7 @@ export function processCmd(chunk) {
actionId: 'connect',
options: { dst: dstSrc[0], src: dstSrc[1] },
},
`connect ${dstSrc[0]}`
`connect ${dstSrc[0]}`,
)
}
break
Expand Down Expand Up @@ -196,7 +196,7 @@ export function processCmd(chunk) {
if (reply.length != msgLength.dualControllerStatusResponse) {
this.log(
'warn',
` dualControllerStatusResponse. Unexpected Length. Expected: ${msgLength.dualControllerStatusResponse} Recieved: ${reply.length}`
` dualControllerStatusResponse. Unexpected Length. Expected: ${msgLength.dualControllerStatusResponse} Recieved: ${reply.length}`,
)
return undefined
}
Expand Down Expand Up @@ -246,7 +246,7 @@ export function processCmd(chunk) {
}
this.log(
'warn',
'unit unexpectedly returned a extendedTally/extendedConnected. this module does not handle extended commands'
'unit unexpectedly returned a extendedTally/extendedConnected. this module does not handle extended commands',
)
break
case cmd.extendedConnectOnGo:
Expand Down Expand Up @@ -275,7 +275,7 @@ export function processCmd(chunk) {
if (reply.length != msgLength.routerConfigurationRequest) {
this.log(
'warn',
`Unexpected Length. Expected: ${msgLength.routerConfigurationRequest} Recieved: ${reply.length}`
`Unexpected Length. Expected: ${msgLength.routerConfigurationRequest} Recieved: ${reply.length}`,
)
return undefined
}
Expand All @@ -285,7 +285,7 @@ export function processCmd(chunk) {
if (reply.length != msgLength.routerConfigurationResponse1) {
this.log(
'warn',
`Unexpected Length. Expected: ${msgLength.routerConfigurationResponse1} Recieved: ${reply.length}`
`Unexpected Length. Expected: ${msgLength.routerConfigurationResponse1} Recieved: ${reply.length}`,
)
return undefined
}
Expand All @@ -295,7 +295,7 @@ export function processCmd(chunk) {
if (reply.length != msgLength.routerConfigurationResponse2) {
this.log(
'warn',
`Unexpected Length. Expected: ${msgLength.routerConfigurationResponse2} Recieved: ${reply.length}`
`Unexpected Length. Expected: ${msgLength.routerConfigurationResponse2} Recieved: ${reply.length}`,
)
return undefined
}
Expand Down

0 comments on commit 097a187

Please sign in to comment.