From a28f353a64c24df5cf29d4167429d27f88c94502 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 24 Jan 2018 10:33:50 +0100 Subject: [PATCH] Fix lint --- client/package.json | 2 +- scripts/travis.sh | 2 +- server/lib/activitypub/process/process-update.ts | 1 - server/lib/activitypub/videos.ts | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/client/package.json b/client/package.json index f9becb215..a14376fd8 100644 --- a/client/package.json +++ b/client/package.json @@ -13,7 +13,7 @@ "url": "git://github.com/Chocobozzz/PeerTube.git" }, "scripts": { - "lint": "standard && tslint --type-check --project ./tsconfig.json -c ./tslint.json 'src/app/**/*.ts'", + "lint": "standard && tslint --project ./tsconfig.json -c ./tslint.json 'src/app/**/*.ts'", "webpack": "webpack", "ng": "ng", "postinstall": "npm rebuild node-sass", diff --git a/scripts/travis.sh b/scripts/travis.sh index f24aac885..e03f1072d 100755 --- a/scripts/travis.sh +++ b/scripts/travis.sh @@ -25,5 +25,5 @@ elif [ "$1" = "lint" ]; then npm run lint || exit -1 cd .. || exit -1 - npm run tslint -- --type-check --project ./tsconfig.json -c ./tslint.json server.ts "server/**/*.ts" || exit -1 + npm run tslint -- --project ./tsconfig.json -c ./tslint.json server.ts "server/**/*.ts" || exit -1 fi diff --git a/server/lib/activitypub/process/process-update.ts b/server/lib/activitypub/process/process-update.ts index b5c97e515..c0038be64 100644 --- a/server/lib/activitypub/process/process-update.ts +++ b/server/lib/activitypub/process/process-update.ts @@ -2,7 +2,6 @@ import * as Bluebird from 'bluebird' import { ActivityUpdate } from '../../../../shared/models/activitypub' import { ActivityPubActor } from '../../../../shared/models/activitypub/activitypub-actor' import { VideoTorrentObject } from '../../../../shared/models/activitypub/objects' -import { VideoFile } from '../../../../shared/models/videos' import { retryTransactionWrapper } from '../../../helpers/database-utils' import { logger } from '../../../helpers/logger' import { resetSequelizeInstance } from '../../../helpers/utils' diff --git a/server/lib/activitypub/videos.ts b/server/lib/activitypub/videos.ts index 263c2629c..50e7e5cde 100644 --- a/server/lib/activitypub/videos.ts +++ b/server/lib/activitypub/videos.ts @@ -1,4 +1,3 @@ -import * as Bluebird from 'bluebird' import * as magnetUtil from 'magnet-uri' import { join } from 'path' import * as request from 'request'