From 68b0f71d263a2e56d70b596308bf960ba5d8e800 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Fri, 23 Nov 2018 17:23:31 +0100 Subject: Fix linter issues --- contracts/core/test/multisig/asset_proxy_owner.ts | 1 + contracts/test-utils/package.json | 2 +- contracts/test-utils/tsconfig.lint.json | 7 +++++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 contracts/test-utils/tsconfig.lint.json diff --git a/contracts/core/test/multisig/asset_proxy_owner.ts b/contracts/core/test/multisig/asset_proxy_owner.ts index c4ea3813f..daebfb7fb 100644 --- a/contracts/core/test/multisig/asset_proxy_owner.ts +++ b/contracts/core/test/multisig/asset_proxy_owner.ts @@ -503,3 +503,4 @@ describe('AssetProxyOwner', () => { }); }); }); +// tslint:disable-line max-file-line-count diff --git a/contracts/test-utils/package.json b/contracts/test-utils/package.json index a83aa931d..55e75717b 100644 --- a/contracts/test-utils/package.json +++ b/contracts/test-utils/package.json @@ -16,7 +16,7 @@ "test:coverage": "run-s build run_mocha coverage:report:text coverage:report:lcov", "run_mocha": "mocha --require source-map-support/register --require make-promises-safe 'lib/test/**/*.js' --timeout 100000 --bail --exit", "clean": "shx rm -rf lib", - "lint": "tslint --format stylish --project .", + "lint": "tslint --format stylish --project tsconfig.lint.json", "coverage:report:text": "istanbul report text", "coverage:report:html": "istanbul report html && open coverage/index.html", "profiler:report:html": "istanbul report html && open coverage/index.html", diff --git a/contracts/test-utils/tsconfig.lint.json b/contracts/test-utils/tsconfig.lint.json new file mode 100644 index 000000000..b557e706a --- /dev/null +++ b/contracts/test-utils/tsconfig.lint.json @@ -0,0 +1,7 @@ +{ + // This file is a workaround that issue: https://github.com/palantir/tslint/issues/4148#issuecomment-419872702 + "extends": "./tsconfig", + "compilerOptions": { + "composite": false + } +} -- cgit v1.2.3