Try enabling no-unused-variable...

This commit is contained in:
fragosti
2018-06-04 19:48:21 -07:00
parent 70858603ed
commit 9778695b4a
180 changed files with 110 additions and 420 deletions

View File

@@ -19,6 +19,7 @@ interface VersionsByDependency {
const PACKAGE_JSON_GLOB = '../*/package.json';
// tslint:disable:no-unused-variable
function getDependencies(path: string): Dependencies {
const file = fs.readFileSync(path).toString();
const parsed = JSON.parse(file);
@@ -52,3 +53,4 @@ _.map(versionsByDependency, (versions: Versions, depName: string) => {
});
}
});
// tslint:disable:no-unused-variable

View File

@@ -1,10 +1,8 @@
#!/usr/bin/env node
import * as depcheckAsync from 'depcheck';
import * as fs from 'fs';
import lernaGetPackages = require('lerna-get-packages');
import * as _ from 'lodash';
import { exec as execAsync } from 'promisify-child-process';
import { constants } from './constants';
import { utils } from './utils/utils';

View File

@@ -4,7 +4,6 @@ import * as fs from 'fs';
import * as _ from 'lodash';
import * as path from 'path';
import * as publishRelease from 'publish-release';
import semverSort = require('semver-sort');
import { constants } from './constants';
import { utils } from './utils/utils';
@@ -53,6 +52,7 @@ export const postpublishUtils = {
},
async runAsync(packageJSON: any, tsConfigJSON: any, cwd: string): Promise<void> {
const configs = this.generateConfig(packageJSON, tsConfigJSON, cwd);
// tslint:disable-next-line:no-unused-variable
const release = await this.publishReleaseNotesAsync(
configs.cwd,
configs.packageName,
@@ -93,8 +93,10 @@ export const postpublishUtils = {
const notes = this.getReleaseNotes(packageName, version);
const releaseName = this.getReleaseName(packageName, version);
const tag = this.getTag(packageName, version);
// tslint:disable-next-line:no-unused-variable
const finalAssets = this.adjustAssetPaths(cwd, assets);
utils.log('POSTPUBLISH: Releasing ', releaseName, '...');
// tslint:disable-next-line:no-unused-variable
const result = await publishReleaseAsync({
token: constants.githubPersonalAccessToken,
owner: '0xProject',

View File

@@ -2,7 +2,6 @@
import * as promisify from 'es6-promisify';
import * as fs from 'fs';
import lernaGetPackages = require('lerna-get-packages');
import * as _ from 'lodash';
import * as moment from 'moment';
import opn = require('opn');

View File

@@ -1,6 +1,5 @@
#!/usr/bin/env node
import lernaGetPackages = require('lerna-get-packages');
import * as _ from 'lodash';
import * as path from 'path';
import { exec as execAsync } from 'promisify-child-process';

View File

@@ -1,7 +1,7 @@
import * as fs from 'fs';
import lernaGetPackages = require('lerna-get-packages');
import * as _ from 'lodash';
import { exec as execAsync, spawn } from 'promisify-child-process';
import { exec as execAsync } from 'promisify-child-process';
import { constants } from '../constants';
import { UpdatedPackage } from '../types';