Skip to content

🎥 Make videos programmatically with React

unnecessary eslint ignores

Jonny Burger958340bdedcf
diff --git a/packages/eslint-config/src/patch-eslint.ts b/packages/eslint-config/src/patch-eslint.ts
index df366aebec..1f14d43af2 100644
--- a/packages/eslint-config/src/patch-eslint.ts
+++ b/packages/eslint-config/src/patch-eslint.ts
@@ -1,4 +1,3 @@
-/* eslint-disable max-depth */
// Taken from https://github.com/microsoft/rushstack/blob/main/eslint/eslint-patch/src/modern-module-resolution.ts
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
@@ -43,7 +42,6 @@ export const allowESLintShareableConfig = () => {
// Probe for the ESLint >=8.0.0 layout:
for (let currentModule = module; ; ) {
- // eslint-disable-next-line no-negated-condition
if (!eslintrcBundlePath) {
if (currentModule.filename.endsWith('eslintrc.cjs')) {
// For ESLint >=8.0.0, all @eslint/eslintrc code is bundled at this path:
diff --git a/packages/media-parser/src/metadata/metadata-from-matroska.ts b/packages/media-parser/src/metadata/metadata-from-matroska.ts
index 4187b1db87..f2a4a2c287 100644
--- a/packages/media-parser/src/metadata/metadata-from-matroska.ts
+++ b/packages/media-parser/src/metadata/metadata-from-matroska.ts
@@ -1,4 +1,3 @@
-/* eslint-disable max-depth */
import type {PossibleEbml} from '../containers/webm/segments/all-segments';
import {getTrackWithUid} from '../containers/webm/traversal';
import type {MatroskaStructure} from '../parse-result';
diff --git a/packages/renderer/src/path-normalize.ts b/packages/renderer/src/path-normalize.ts
index 9d6d0358ff..85d0d017dc 100644
--- a/packages/renderer/src/path-normalize.ts
+++ b/packages/renderer/src/path-normalize.ts
@@ -10,7 +10,6 @@ The above copyright notice and this permission notice shall be included in all c
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-/* eslint-disable max-depth */
const SLASH = 47;
const DOT = 46;
diff --git a/packages/studio-server/src/preview-server/dev-middleware/middleware.ts b/packages/studio-server/src/preview-server/dev-middleware/middleware.ts
index f81a436d7b..a923699209 100644
--- a/packages/studio-server/src/preview-server/dev-middleware/middleware.ts
+++ b/packages/studio-server/src/preview-server/dev-middleware/middleware.ts
@@ -96,14 +96,12 @@ function getFilenameFromUrl(
filename = path.join(filename, indexValue);
- // eslint-disable-next-line max-depth
try {
fsStats = context.outputFileSystem.statSync(filename);
} catch {
continue;
}
- // eslint-disable-next-line max-depth
if (fsStats.isFile()) {
foundFilename = filename;