Skip to content

Commit

Permalink
chore: migrate ESLint config, update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
fmalcher committed Oct 25, 2024
1 parent 0e5d4ca commit 0c96d09
Show file tree
Hide file tree
Showing 4 changed files with 371 additions and 159 deletions.
17 changes: 17 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { generateEslintConfig } from '@companion-module/tools/eslint/config.mjs'

const baseConfig = await generateEslintConfig({
enableTypescript: true,
})

const customConfig = [
...baseConfig,
{
rules: {
'@typescript-eslint/no-unsafe-enum-comparison': 'off',
'n/no-missing-import': 'off',
},
},
]

export default customConfig
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,22 @@
"node": "^18.12"
},
"dependencies": {
"@companion-module/base": "~1.10.0",
"@companion-module/base": "~1.11.0",
"bufferutil": "^4.0.7",
"rxjs": "7.8.1",
"soundcraft-ui-connection": "^2.7.0",
"utf-8-validate": "^6.0.3"
},
"devDependencies": {
"@companion-module/tools": "^2.0.3",
"@companion-module/tools": "^2.1.0",
"@types/node": "^18.19.32",
"eslint": "^9.10.0",
"eslint": "^9.11.1",
"husky": "^9.1.5",
"lint-staged": "^15.2.9",
"prettier": "^3.3.3",
"rimraf": "^5.0.10",
"typescript": "~5.5.4"
"typescript-eslint": "^8.7.0",
"typescript": "~5.6.2"
},
"packageManager": "[email protected]"
}
4 changes: 2 additions & 2 deletions src/feedback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export function GetFeedbacksList(feedback: UiFeedbackState, conn: SoundcraftUI):
const state = Number(evt.options.state)
const state$ = conn.player.state$.pipe(
map((s) => (s === state ? 1 : 0)),
distinctUntilChanged()
distinctUntilChanged(),
)
const streamId = 'playerstate' + state
feedback.connect(evt, state$, streamId)
Expand Down Expand Up @@ -278,7 +278,7 @@ export function GetFeedbacksList(feedback: UiFeedbackState, conn: SoundcraftUI):
const state = Number(evt.options.state)
const state$ = conn.recorderMultiTrack.state$.pipe(
map((s) => (s === state ? 1 : 0)),
distinctUntilChanged()
distinctUntilChanged(),
)
const streamId = 'mtkstate' + state
feedback.connect(evt, state$, streamId)
Expand Down
Loading

0 comments on commit 0c96d09

Please sign in to comment.