Skip to content

Commit

Permalink
fix(lint): fixes tslint script & lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
huafu committed Jul 23, 2018
1 parent 3e0b7da commit 60ab36e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"pretest": "npm run tslint && npm run clean-build",
"test": "node scripts/tests.js",
"test:unit": "jest --testRegex '' --testMatch '<rootDir>/src/**/*.spec.ts'",
"tslint": "tslint src/**/*.ts",
"tslint": "tslint 'src/**/*.ts'",
"doc": "doctoc .",
"prepublish": "npm run clean-build",
"precommit": "lint-staged",
Expand Down
4 changes: 2 additions & 2 deletions src/postprocess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let babel: typeof __types__babel;
let istanbulPlugin: typeof __types__istanbulPlugin;
let jestPreset: typeof __types__jestPreset;
function importBabelDeps() {
if (babel) return; // tslint:ignore-line
if (babel) return; // tslint:disable-line
// ensure we use the require from jest
babel = require.main.require('@babel/core');
istanbulPlugin = require.main.require('babel-plugin-istanbul').default;
Expand Down Expand Up @@ -104,6 +104,6 @@ export const getPostProcessHook = (
return createBabelTransformer(babelOptions);
};

function toArray<T>(iter?: Iterable<T> | null): Array<T> {
function toArray<T>(iter?: Iterable<T> | null): T[] {
return iter ? Array.from(iter) : [];
}

0 comments on commit 60ab36e

Please sign in to comment.