Skip to content

Commit

Permalink
Merge pull request #83 from sindresorhus/broken-configs
Browse files Browse the repository at this point in the history
Demo broken shareable configs
  • Loading branch information
sindresorhus committed Mar 3, 2016
2 parents da4393f + cc79ed2 commit 133642e
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
!test/fixtures/project/node_modules
5 changes: 5 additions & 0 deletions test/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,8 @@ test.skip('ignores fixture', async t => {
const cwd = path.join(__dirname, 'fixtures/ignores');
t.throws(execa('../../../cli.js', ['--no-local'], {cwd}));
});

test('supports shareable config', async () => {
const cwd = path.join(__dirname, 'fixtures/project');
await execa('../../../cli.js', ['--no-local'], {cwd});
});
2 changes: 2 additions & 0 deletions test/fixtures/project/file.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
var obj = { a: 1 };
console.log(obj.a);

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions test/fixtures/project/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"xo": {
"extends": ["custom"]
}
}

0 comments on commit 133642e

Please sign in to comment.