Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix lint momory issues

Chocobozzzdfecb9003600
diff --git a/client/tslint.json b/client/tslint.json
index c1ca4336ef..db852d9f8d 100644
--- a/client/tslint.json
+++ b/client/tslint.json
@@ -6,7 +6,7 @@
"eofline": true,
"max-line-length": [true, 140],
"no-floating-promises": false,
- "no-unused-variable": false, // Bug, wait TypeScript 2.4
+ "no-unused-variable": false, // Memory issues
"member-ordering": [true,
"public-before-private",
"static-before-instance",
diff --git a/scripts/travis.sh b/scripts/travis.sh
index a3e065d474..ea0dc86997 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 -- --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" "shared/**/*.ts" || exit -1
fi
diff --git a/shared/models/activitypub/activitypub-ordered-collection.ts b/shared/models/activitypub/activitypub-ordered-collection.ts
index 487d8cee07..dfec0bb76f 100644
--- a/shared/models/activitypub/activitypub-ordered-collection.ts
+++ b/shared/models/activitypub/activitypub-ordered-collection.ts
@@ -1,5 +1,3 @@
-import { Activity } from './activity'
-
export interface ActivityPubOrderedCollection<T> {
'@context': string[]
type: 'OrderedCollection' | 'OrderedCollectionPage'
diff --git a/shared/models/users/user-login.model.ts b/shared/models/users/user-login.model.ts
index b0383c6957..1e85ab30b0 100644
--- a/shared/models/users/user-login.model.ts
+++ b/shared/models/users/user-login.model.ts
@@ -2,4 +2,4 @@ export interface UserLogin {
access_token: string
refresh_token: string
token_type: string
-}
\ No newline at end of file
+}
diff --git a/tslint.json b/tslint.json
index 9acb246304..92d0bd2b1d 100644
--- a/tslint.json
+++ b/tslint.json
@@ -7,6 +7,7 @@
"indent": ["spaces"],
"ter-indent": [true, 2],
"max-line-length": [true, 140],
+ "no-unused-variable": false, // Memory issues
"no-floating-promises": false
}
}