diff --git a/packages/context/src/binding.ts b/packages/context/src/binding.ts index 67a2a1b1b34b..1b4c05fd5ae3 100644 --- a/packages/context/src/binding.ts +++ b/packages/context/src/binding.ts @@ -6,7 +6,7 @@ import {Context} from './context'; import {ResolutionSession} from './resolution-session'; import {Constructor, instantiateClass} from './resolver'; -import {isPromise, BoundValue, ValueOrPromise} from './value-promise'; +import {isPromise, BoundValue} from './value-promise'; import {Provider} from './provider'; import * as debugModule from 'debug'; diff --git a/packages/context/src/inject.ts b/packages/context/src/inject.ts index 006f24ca2495..5e647c02bb42 100644 --- a/packages/context/src/inject.ts +++ b/packages/context/src/inject.ts @@ -10,12 +10,7 @@ import { PropertyDecoratorFactory, MetadataMap, } from '@loopback/metadata'; -import { - BoundValue, - ValueOrPromise, - isPromise, - resolveList, -} from './value-promise'; +import {BoundValue, ValueOrPromise, resolveList} from './value-promise'; import {Context} from './context'; import {ResolutionSession} from './resolution-session'; diff --git a/packages/context/src/resolution-session.ts b/packages/context/src/resolution-session.ts index aa13a1e0d86b..be0c01d63c6b 100644 --- a/packages/context/src/resolution-session.ts +++ b/packages/context/src/resolution-session.ts @@ -5,12 +5,7 @@ import {Binding} from './binding'; import {Injection} from './inject'; -import { - isPromise, - ValueOrPromise, - BoundValue, - tryWithFinally, -} from './value-promise'; +import {ValueOrPromise, BoundValue, tryWithFinally} from './value-promise'; import * as debugModule from 'debug'; import {DecoratorFactory} from '@loopback/metadata'; diff --git a/packages/context/test/unit/value-promise.test.ts b/packages/context/test/unit/value-promise.test.ts index e93ebdc4f4f2..7aced6c2de8f 100644 --- a/packages/context/test/unit/value-promise.test.ts +++ b/packages/context/test/unit/value-promise.test.ts @@ -4,14 +4,7 @@ // License text available at https://opensource.org/licenses/MIT import {expect} from '@loopback/testlab'; -import { - BoundValue, - ValueOrPromise, - resolveList, - resolveMap, - tryWithFinally, - getDeepProperty, -} from '../..'; +import {resolveList, resolveMap, tryWithFinally, getDeepProperty} from '../..'; describe('tryWithFinally', () => { it('performs final action for a fulfilled promise', async () => { diff --git a/packages/example-getting-started/src/application.ts b/packages/example-getting-started/src/application.ts index 1ae03dcb9849..f0d2df88dbfc 100644 --- a/packages/example-getting-started/src/application.ts +++ b/packages/example-getting-started/src/application.ts @@ -11,12 +11,7 @@ import {db} from './datasources/db.datasource'; /* tslint:disable:no-unused-imports */ // Class and Repository imports required to infer types in consuming code! // Do not remove them! -import { - Class, - Repository, - DataSourceConstructor, - RepositoryMixin, -} from '@loopback/repository'; +import {DataSourceConstructor, RepositoryMixin} from '@loopback/repository'; /* tslint:enable:no-unused-imports */ export class TodoApplication extends RepositoryMixin(RestApplication) { constructor(options?: ApplicationConfig) { diff --git a/packages/example-getting-started/src/datasources/db.datasource.ts b/packages/example-getting-started/src/datasources/db.datasource.ts index de60ca796c71..1895beee52f4 100644 --- a/packages/example-getting-started/src/datasources/db.datasource.ts +++ b/packages/example-getting-started/src/datasources/db.datasource.ts @@ -7,7 +7,7 @@ import * as path from 'path'; // The juggler reference must exist for consuming code to correctly infer // type info used in the "db" export (contained in DataSourceConstructor). /* tslint:disable-next-line:no-unused-imports */ -import {juggler, DataSourceConstructor} from '@loopback/repository'; +import {DataSourceConstructor} from '@loopback/repository'; const dsConfigPath = path.resolve( __dirname, diff --git a/packages/example-hello-world/src/application.ts b/packages/example-hello-world/src/application.ts index 090e046d8be4..bfa570c88383 100644 --- a/packages/example-hello-world/src/application.ts +++ b/packages/example-hello-world/src/application.ts @@ -3,7 +3,6 @@ // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT -import {Application} from '@loopback/core'; import {RestApplication, RestServer} from '@loopback/rest'; export class HelloWorldApplication extends RestApplication { diff --git a/packages/openapi-v2/src/controller-spec.ts b/packages/openapi-v2/src/controller-spec.ts index c8f49432376c..1d9a885c742d 100644 --- a/packages/openapi-v2/src/controller-spec.ts +++ b/packages/openapi-v2/src/controller-spec.ts @@ -22,7 +22,6 @@ import { ItemType, ItemsObject, DefinitionsObject, - MapObject, } from '@loopback/openapi-spec'; import * as stream from 'stream'; diff --git a/packages/repository-json-schema/src/build-schema.ts b/packages/repository-json-schema/src/build-schema.ts index 3e3b6026c18c..fadfa234c1b4 100644 --- a/packages/repository-json-schema/src/build-schema.ts +++ b/packages/repository-json-schema/src/build-schema.ts @@ -145,7 +145,6 @@ export function modelToJsonSchema(ctor: Function): JsonDefinition { result.properties = result.properties || {}; result.properties[p] = result.properties[p] || {}; - const property = result.properties[p]; const metaProperty = meta.properties[p]; const metaType = metaProperty.type; diff --git a/packages/testlab/src/test-sandbox.ts b/packages/testlab/src/test-sandbox.ts index ac24b6820a10..21732a10c7d3 100644 --- a/packages/testlab/src/test-sandbox.ts +++ b/packages/testlab/src/test-sandbox.ts @@ -3,10 +3,7 @@ // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT -import {tmpdir} from 'os'; -import {createHash} from 'crypto'; -import {resolve, join, parse} from 'path'; -import * as util from 'util'; +import {resolve, parse} from 'path'; import {copy, ensureDirSync, emptyDir, remove, ensureDir} from 'fs-extra'; /** diff --git a/packages/testlab/test/integration/test-sandbox.integration.ts b/packages/testlab/test/integration/test-sandbox.integration.ts index 94ad67e0a1d8..8cb75c069bcc 100644 --- a/packages/testlab/test/integration/test-sandbox.integration.ts +++ b/packages/testlab/test/integration/test-sandbox.integration.ts @@ -5,8 +5,6 @@ import {TestSandbox, expect} from '../..'; import {resolve} from 'path'; -import {createHash} from 'crypto'; -import * as util from 'util'; import {remove, pathExists, readFile} from 'fs-extra'; describe('TestSandbox integration tests', () => { diff --git a/tslint.json b/tslint.json index a84597d6107a..8ffc9a4d90c7 100644 --- a/tslint.json +++ b/tslint.json @@ -1,6 +1,6 @@ { "$schema": "http://json.schemastore.org/tslint", - "extends": ["./packages/build/config/tslint.common.json"], + "extends": ["./packages/build/config/tslint.build.json"], "linterOptions": { "exclude": ["./packages/cli/generators/*/templates/**/*"] }