Skip to content

Commit

Permalink
feat(eslint): passed the prefix for the eslint config
Browse files Browse the repository at this point in the history
this hard-codes to my config for now, but can be cleaned up once things are refactored to enable
injecting config more effectively
  • Loading branch information
travi committed May 4, 2018
1 parent 85152f0 commit 1d740d2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/scaffolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ export async function scaffold() {
visibility,
license: chosenLicense,
ci: ciService,
description
description,
eslintConfigPrefix: '@travi/travi'
}) : undefined
]);

Expand Down
11 changes: 10 additions & 1 deletion test/unit/scaffolder-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,16 @@ suite('project scaffolder', () => {
const jsContibutionBadges = any.simpleObject();
const verificationCommand = any.string();
javascriptScaffolder.scaffold
.withArgs({projectName, projectRoot: projectPath, visibility, license, vcs, ci, description})
.withArgs({
projectName,
projectRoot: projectPath,
visibility,
license,
vcs,
ci,
description,
eslintConfigPrefix: '@travi/travi'
})
.resolves({
vcsIgnore: ignore,
badges: {consumer: jsConsumerBadges, contribution: jsContibutionBadges},
Expand Down

0 comments on commit 1d740d2

Please sign in to comment.