mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Move to eslint
This commit is contained in:
parent
a22046d166
commit
a15871560f
390 changed files with 3950 additions and 3615 deletions
|
@ -1,3 +1,5 @@
|
|||
// eslint-disable @typescript-eslint/no-unnecessary-type-assertion
|
||||
|
||||
import { registerTSPaths } from '../helpers/register-ts-paths'
|
||||
registerTSPaths()
|
||||
|
||||
|
@ -5,7 +7,7 @@ import * as program from 'commander'
|
|||
import * as prompt from 'prompt'
|
||||
import { getNetrc, getSettings, writeSettings } from './cli'
|
||||
import { isUserUsernameValid } from '../helpers/custom-validators/users'
|
||||
import { getAccessToken, login } from '../../shared/extra-utils'
|
||||
import { getAccessToken } from '../../shared/extra-utils'
|
||||
import * as CliTable3 from 'cli-table3'
|
||||
|
||||
async function delInstance (url: string) {
|
||||
|
@ -108,9 +110,9 @@ program
|
|||
const [ settings, netrc ] = await Promise.all([ getSettings(), getNetrc() ])
|
||||
|
||||
const table = new CliTable3({
|
||||
head: ['instance', 'login'],
|
||||
colWidths: [30, 30]
|
||||
}) as CliTable3.HorizontalTable
|
||||
head: [ 'instance', 'login' ],
|
||||
colWidths: [ 30, 30 ]
|
||||
}) as any
|
||||
|
||||
settings.remotes.forEach(element => {
|
||||
if (!netrc.machines[element]) return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue