]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix lint momory issues
authorChocobozzz <me@florianbigard.com>
Thu, 8 Mar 2018 16:31:11 +0000 (17:31 +0100)
committerChocobozzz <me@florianbigard.com>
Thu, 8 Mar 2018 16:31:11 +0000 (17:31 +0100)
client/tslint.json
scripts/travis.sh
shared/models/activitypub/activitypub-ordered-collection.ts
shared/models/users/user-login.model.ts
tslint.json

index c1ca4336ef4af00952d976c08633cf9cb2d5a58b..db852d9f8d37fbf247ded51ca4b5c0436100b4ea 100644 (file)
@@ -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",
index a3e065d4746f5a42bc2dbfdbf574a843e4fcf6c5..ea0dc869979934149bc4fb700e6bd1f1ced6c70f 100755 (executable)
@@ -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
index 487d8cee07f10cc4b7f18ef1cbae2becaf00a832..dfec0bb76fd22a5b8d9050df7c7b6a9d0bd756aa 100644 (file)
@@ -1,5 +1,3 @@
-import { Activity } from './activity'
-
 export interface ActivityPubOrderedCollection<T> {
   '@context': string[]
   type: 'OrderedCollection' | 'OrderedCollectionPage'
index b0383c6957ac68c3d54edd4e538cd9acaddb73ea..1e85ab30b05b6105e6e672b9ea00c1ac516eed15 100644 (file)
@@ -2,4 +2,4 @@ export interface UserLogin {
   access_token: string
   refresh_token: string
   token_type: string
-}
\ No newline at end of file
+}
index 9acb2463040e9b88e8ef1a008247329f3d7ae705..92d0bd2b1d7c4603d3de4189376af5e1c95fb4fa 100644 (file)
@@ -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
   }
 }