kopia lustrzana https://github.com/mifi/lossless-cut
lint
rodzic
281ff6e980
commit
918277bd75
|
@ -5,7 +5,6 @@ module.exports = {
|
|||
'jsx-a11y/click-events-have-key-events': 0,
|
||||
'jsx-a11y/interactive-supports-focus': 0,
|
||||
'jsx-a11y/control-has-associated-label': 0,
|
||||
'unicorn/prefer-node-protocol': 0, // todo
|
||||
},
|
||||
|
||||
overrides: [
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { readFile, writeFile } from 'fs/promises';
|
||||
import { readFile, writeFile } from 'node:fs/promises';
|
||||
import { XMLParser, XMLBuilder } from 'fast-xml-parser';
|
||||
import { DateTime } from 'luxon';
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// eslint-disable-line unicorn/filename-case
|
||||
import { execa } from 'execa';
|
||||
import { readFile } from 'fs/promises';
|
||||
import { readFile } from 'node:fs/promises';
|
||||
|
||||
// we need a wrapper script because altool tends to error out very often
|
||||
// https://developer.apple.com/forums/thread/698477
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import assert from 'assert';
|
||||
import assert from 'node:assert';
|
||||
|
||||
import logger from './logger.js';
|
||||
import { createMediaSourceProcess, readOneJpegFrame as readOneJpegFrameRaw } from './ffmpeg.js';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import Store from 'electron-store';
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
import electron from 'electron';
|
||||
import { join, dirname } from 'path';
|
||||
import { join, dirname } from 'node:path';
|
||||
import { pathExists } from 'fs-extra';
|
||||
|
||||
import { KeyBinding, Config } from '../../types.js';
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { join } from 'path';
|
||||
import readline from 'readline';
|
||||
import { join } from 'node:path';
|
||||
import readline from 'node:readline';
|
||||
import stringToStream from 'string-to-stream';
|
||||
import { BufferEncodingOption, execa, ExecaChildProcess, Options as ExecaOptions } from 'execa';
|
||||
import assert from 'assert';
|
||||
import { Readable } from 'stream';
|
||||
import assert from 'node:assert';
|
||||
import { Readable } from 'node:stream';
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
import { app } from 'electron';
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import express from 'express';
|
||||
import morgan from 'morgan';
|
||||
import http from 'http';
|
||||
import http from 'node:http';
|
||||
import asyncHandler from 'express-async-handler';
|
||||
import assert from 'assert';
|
||||
import assert from 'node:assert';
|
||||
|
||||
import { homepage } from './constants.js';
|
||||
import logger from './logger.js';
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// const LanguageDetector = window.require('i18next-electron-language-detector');
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
import { app } from 'electron';
|
||||
import { join } from 'path';
|
||||
import { join } from 'node:path';
|
||||
import { InitOptions } from 'i18next';
|
||||
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@ import debounce from 'lodash/debounce';
|
|||
import yargsParser from 'yargs-parser';
|
||||
import JSON5 from 'json5';
|
||||
import remote from '@electron/remote/main';
|
||||
import { stat } from 'fs/promises';
|
||||
import assert from 'assert';
|
||||
import { stat } from 'node:fs/promises';
|
||||
import assert from 'node:assert';
|
||||
|
||||
import logger from './logger.js';
|
||||
import menu from './menu.js';
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import winston from 'winston';
|
||||
import util from 'util';
|
||||
import util from 'node:util';
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
import { app } from 'electron';
|
||||
import { join } from 'path';
|
||||
import { join } from 'node:path';
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
import type { TransformableInfo } from 'logform';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import os from 'os';
|
||||
import os from 'node:os';
|
||||
|
||||
export const platform = os.platform();
|
||||
export const arch = os.arch();
|
||||
|
|
|
@ -2529,7 +2529,6 @@ function App() {
|
|||
<AnimatePresence>
|
||||
{showLeftBar && (
|
||||
<BatchFilesList
|
||||
// @ts-expect-error todo
|
||||
selectedBatchFiles={selectedBatchFiles}
|
||||
filePath={filePath}
|
||||
width={leftBarWidth}
|
||||
|
@ -2696,7 +2695,6 @@ function App() {
|
|||
/>
|
||||
|
||||
<BottomBar
|
||||
// @ts-expect-error todo
|
||||
zoom={zoom}
|
||||
setZoom={setZoom}
|
||||
timelineToggleComfortZoom={timelineToggleComfortZoom}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import fs from 'fs/promises';
|
||||
import { join, dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
import fs from 'node:fs/promises';
|
||||
import { join, dirname } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { it, describe, expect } from 'vitest';
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import dataUriToBuffer from 'data-uri-to-buffer';
|
||||
import pMap from 'p-map';
|
||||
import { useCallback } from 'react';
|
||||
import type * as FsPromises from 'fs/promises';
|
||||
import type * as FsPromises from 'node:fs/promises';
|
||||
|
||||
import { getSuffixedOutPath, getOutDir, transferTimestamps, getSuffixedFileName, getOutPath, escapeRegExp, fsOperationWithRetry } from '../util';
|
||||
import { getNumDigits } from '../segments';
|
||||
|
|
|
@ -4,7 +4,7 @@ import { MotionConfig } from 'framer-motion';
|
|||
import { enableMapSet } from 'immer';
|
||||
import * as Electron from 'electron';
|
||||
import Remote from '@electron/remote';
|
||||
import type path from 'path';
|
||||
import type path from 'node:path';
|
||||
|
||||
import 'sweetalert2/dist/sweetalert2.css';
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@ import prettyBytes from 'pretty-bytes';
|
|||
import sortBy from 'lodash/sortBy';
|
||||
import pRetry, { Options } from 'p-retry';
|
||||
import { ExecaError } from 'execa';
|
||||
import type * as FsPromises from 'fs/promises';
|
||||
import type * as FsPromises from 'node:fs/promises';
|
||||
import type * as FsExtra from 'fs-extra';
|
||||
import type { PlatformPath } from 'path';
|
||||
import type { PlatformPath } from 'node:path';
|
||||
|
||||
import isDev from './isDev';
|
||||
import Swal, { toast } from './swal';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import i18n from 'i18next';
|
||||
import lodashTemplate from 'lodash/template';
|
||||
import { PlatformPath } from 'path';
|
||||
import { PlatformPath } from 'node:path';
|
||||
|
||||
import { isMac, isWindows, hasDuplicates, filenamify, getOutFileExtension } from '../util';
|
||||
import isDev from '../isDev';
|
||||
|
|
Ładowanie…
Reference in New Issue