Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: enable tslint no-default-export #236

Merged
merged 1 commit into from
Oct 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cli/args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function dashToCamelCase(dash) {
: dash.replace(/-[a-z]/g, (m) => m[1].toUpperCase());
}

export default function args(processargv) {
export function args(processargv) {
// all arguments after a '--' are taken as is and passed to the next process
// (see the snyk-mvn-plugin or snyk-gradle-plugin)
// these agrs are split by spaces and sent as an array of strings
Expand Down
2 changes: 1 addition & 1 deletion src/cli/copy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ const program = {
win32: 'clip',
}[process.platform];

export default function copy(str) {
export function copy(str) {
return execSync(program, {input: str});
}
4 changes: 2 additions & 2 deletions src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import * as runtime from './runtime';
import * as analytics from '../lib/analytics';
import * as alerts from '../lib/alerts';
import * as sln from '../lib/sln';
import argsLib from './args';
import copy from './copy';
import {args as argsLib} from './args';
import {copy} from './copy';
import spinner = require('../lib/spinner');
import errors = require('../lib/error');
import ansiEscapes = require('ansi-escapes');
Expand Down
2 changes: 1 addition & 1 deletion test/args.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var test = require('tap').test;
var args = require('../src/cli/args').default;
var args = require('../src/cli/args').args;

test('test command line arguments', function(t) {
t.plan(1);
Expand Down
3 changes: 2 additions & 1 deletion tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"ordered-imports": false,
"quotemark": [true, "single", "avoid-escape", "avoid-template"],
"semicolon": [true, "always"],
"no-console": [false]
"no-console": [false],
"no-default-export": true
}
}