Fix lint
This commit is contained in:
parent
1f7ab4f310
commit
a28f353a64
4 changed files with 2 additions and 4 deletions
|
@ -13,7 +13,7 @@
|
||||||
"url": "git://github.com/Chocobozzz/PeerTube.git"
|
"url": "git://github.com/Chocobozzz/PeerTube.git"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"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",
|
"webpack": "webpack",
|
||||||
"ng": "ng",
|
"ng": "ng",
|
||||||
"postinstall": "npm rebuild node-sass",
|
"postinstall": "npm rebuild node-sass",
|
||||||
|
|
|
@ -25,5 +25,5 @@ elif [ "$1" = "lint" ]; then
|
||||||
npm run lint || exit -1
|
npm run lint || exit -1
|
||||||
|
|
||||||
cd .. || 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
|
fi
|
||||||
|
|
|
@ -2,7 +2,6 @@ import * as Bluebird from 'bluebird'
|
||||||
import { ActivityUpdate } from '../../../../shared/models/activitypub'
|
import { ActivityUpdate } from '../../../../shared/models/activitypub'
|
||||||
import { ActivityPubActor } from '../../../../shared/models/activitypub/activitypub-actor'
|
import { ActivityPubActor } from '../../../../shared/models/activitypub/activitypub-actor'
|
||||||
import { VideoTorrentObject } from '../../../../shared/models/activitypub/objects'
|
import { VideoTorrentObject } from '../../../../shared/models/activitypub/objects'
|
||||||
import { VideoFile } from '../../../../shared/models/videos'
|
|
||||||
import { retryTransactionWrapper } from '../../../helpers/database-utils'
|
import { retryTransactionWrapper } from '../../../helpers/database-utils'
|
||||||
import { logger } from '../../../helpers/logger'
|
import { logger } from '../../../helpers/logger'
|
||||||
import { resetSequelizeInstance } from '../../../helpers/utils'
|
import { resetSequelizeInstance } from '../../../helpers/utils'
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import * as Bluebird from 'bluebird'
|
|
||||||
import * as magnetUtil from 'magnet-uri'
|
import * as magnetUtil from 'magnet-uri'
|
||||||
import { join } from 'path'
|
import { join } from 'path'
|
||||||
import * as request from 'request'
|
import * as request from 'request'
|
||||||
|
|
Loading…
Add table
Reference in a new issue