diff --git a/cypress/e2e/html5video.cy.js b/cypress/e2e/html5video.cy.js index 4457c8747..33f57cc06 100644 --- a/cypress/e2e/html5video.cy.js +++ b/cypress/e2e/html5video.cy.js @@ -2,7 +2,6 @@ // We need to disable specific linting because of Chai assertions: // https://github.com/standard/standard/issues/690#issuecomment-278533482 -/* eslint-disable no-unused-expressions */ const PRESENTATION_START = 0 const MAX_LATENCY = 0.25 diff --git a/example-streams-node/mjpeg-player.js b/example-streams-node/mjpeg-player.js index b447e32e5..5d1d77f5f 100644 --- a/example-streams-node/mjpeg-player.js +++ b/example-streams-node/mjpeg-player.js @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-require-imports */ const yargs = require('yargs') const { pipelines } = require('../../lib/index.node.js') diff --git a/example-streams-node/player.cjs b/example-streams-node/player.cjs index 13d660c19..c6ae263f1 100755 --- a/example-streams-node/player.cjs +++ b/example-streams-node/player.cjs @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-require-imports */ const yargs = require('yargs') const { pipelines } = require('media-stream-library') diff --git a/player/src/MediaStreamPlayer.tsx b/player/src/MediaStreamPlayer.tsx index cfcf4353a..e4cf5d75f 100644 --- a/player/src/MediaStreamPlayer.tsx +++ b/player/src/MediaStreamPlayer.tsx @@ -296,7 +296,6 @@ export class MediaStreamPlayer extends HTMLElement { .then(() => { this._root?.render( this.attributeChangeSubscriber(cb) } diff --git a/player/src/playground.tsx b/player/src/playground.tsx index 96206e1ec..8086d15dd 100644 --- a/player/src/playground.tsx +++ b/player/src/playground.tsx @@ -3,7 +3,6 @@ import { createRoot } from 'react-dom/client' import { Player } from './Player' -// eslint-disable-next-line @typescript-eslint/no-non-null-assertion const appRoot = createRoot(document.querySelector('#root')!) appRoot.render( diff --git a/scripts/tcp-ws-proxy.cjs b/scripts/tcp-ws-proxy.cjs index e863bc1ad..e9692e884 100755 --- a/scripts/tcp-ws-proxy.cjs +++ b/scripts/tcp-ws-proxy.cjs @@ -1,5 +1,4 @@ #!/usr/bin/env node -/* eslint-disable @typescript-eslint/no-require-imports */ const { pipelines } = require('media-stream-library') const yargs = require('yargs') const { hideBin } = require('yargs/helpers') diff --git a/streams/src/components/helpers/stream-factory.ts b/streams/src/components/helpers/stream-factory.ts index f639f8a67..4fafcd37d 100644 --- a/streams/src/components/helpers/stream-factory.ts +++ b/streams/src/components/helpers/stream-factory.ts @@ -1,6 +1,5 @@ import { Readable, Transform, Writable } from 'stream' -// eslint-disable-next-line @typescript-eslint/no-extraneous-class export default class StreamFactory { /** * Creates a writable stream that sends all messages written to the stream diff --git a/streams/src/components/mp4muxer/helpers/isom.ts b/streams/src/components/mp4muxer/helpers/isom.ts index 8002a4344..8b26cdc5d 100644 --- a/streams/src/components/mp4muxer/helpers/isom.ts +++ b/streams/src/components/mp4muxer/helpers/isom.ts @@ -242,7 +242,6 @@ const createParameterSetArrayClass = function (sizeMask = 0x00) { [new UInt8(sizeMask | array.length)] ) this.byteLength = this.value.reduce( - // eslint-disable-next-line @typescript-eslint/restrict-plus-operands (total, element) => total + element.byteLength, 0 ) @@ -1008,7 +1007,6 @@ QTFF/QTFFChap3/qtff3.html#//apple_ref/doc/uid/TP40000939-CH205-124774' * All boxes have a length and type, where so-called full boxes have an * additional 4-bytes (1-byte version and 3-byte flags fields). */ -// eslint-disable-next-line @typescript-eslint/no-extraneous-class class Header { static None() { return [] diff --git a/streams/src/utils/protocols/rtcp.ts b/streams/src/utils/protocols/rtcp.ts index 22a1b62d8..ea0b5582f 100644 --- a/streams/src/utils/protocols/rtcp.ts +++ b/streams/src/utils/protocols/rtcp.ts @@ -270,7 +270,6 @@ const parseSDES = (buffer: Buffer, base: Rtcp): RtcpSDES => { } offset += 4 - // eslint-disable-next-line no-constant-condition while (true) { const itemType = buffer.readUInt8(offset++) diff --git a/streams/tests/h264depay-parser.test.ts b/streams/tests/h264depay-parser.test.ts index 65987906a..7e271d7b5 100644 --- a/streams/tests/h264depay-parser.test.ts +++ b/streams/tests/h264depay-parser.test.ts @@ -36,7 +36,6 @@ describe('h264 parser', (test) => { }) test('parses a FU-A frame split on two RTP packages', (ctx) => { - /*eslint-disable */ const fuaPart1 = Buffer.from( 'gGBwUAkfABNeSvUmfIWIgwAAv7fhaOZ7/8I48OQXY7Fpl6o9HpvJiYz5b2JyowHtuVDBxLY9ZL8FHJOD6rs6h91CSMQmA9fgnTDCVgJ5vdm99c7OMzF3l4K9+VJeZ4eKyC32WVXoVh3h+KVVJERORlYXJDq+1IlMC0EzAqltdPKwC1UmwbsMgtz6fjR/v19wZf0DXOfxTBnb0OnN83kR5G8TffuGm2njvkWsEX7ecpJDzhu0Wn0RZ9Z0I39RuOT5hHrKKSMQSfwWbITrzL+j5bneysE7nAD9mPsEQxqH99GPZodENIbuYhog8TS/Qlv+Ty20GkAZfbZILfjoELO9ahh2wQgLaGd031W4Z7bmM7WACu7fPVm4blRP1rhomufuUAD8ceqjqxcivy5CxeyWS764bBNkffWBVHL7PpzXPhd4e56YduXnWwQO1REIs2MiPfyx7UumMIwDCCKhgDf3BUxWuSXVqcORn0aSp7k8SFCM/767e1peyADK+WKuWVDbrDvPW2igZKBADyashVjvNhdaHJBCWPOpVwfghRhSjeaK2k6/OdY6ebpRDv4J7ZnUCGnNspqy6fo5WbUoQwc4+3xXbq8lN7kYP9zSH4iExe7f//+9flejgJql61Z4A34bwazQ/KlCmySYm/cbIyWuZVQo0R8=', 'base64'