Skip to content

Conversation

@vassudanagunta
Copy link
Contributor

fixes #342

Checklist
  • npm test, tests passing
  • npm run test:snap (to update the snapshot)
  • documentation is changed or added

describe: 'path to JSON configuration file. By default, c8 searches for ' +
'files named .c8rc, .c8rc.json, .nycrc, or .nycrc.json, ' +
'starting from cwd and walking up the filesystem tree.',
defaultDescription: 'as described',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could this just be cwd, and drop the last sentence:

starting from cwd and walking up the filesystem tree?

Also, rather than writing out .c8rc, .c8rc.json, etc.,

Why not pull ['.c8rc', '.c8rc.json', '.nycrc', '.nycrc.json'] into a variable, and use the array we pass to find-up to create the description? That way someone doesn't need to update in both places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarify config

2 participants