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

Allow .nycrc.json #579

Closed
bensaufley opened this issue May 25, 2017 · 1 comment
Closed

Allow .nycrc.json #579

bensaufley opened this issue May 25, 2017 · 1 comment

Comments

@bensaufley
Copy link
Contributor

I'd like to be able to save my .nycrc as a .json file for automatic file type detection in VIM, Visual Studio Code, etc. This is a feature request, not a bug, but for consistency:

Expected Behavior

I put my configuration, JSON-formatted, in .nycrc.json and nyc respects that configuration when I run npm test, which in turn runs nyc nf mocha (nf for node-foreman)

Observed Behavior

nyc does not notice .nycrc.json as a configuration file (looking for .nycrc only), and falls back to default behavior.

Bonus Points! Code (or Repository) that Reproduces Issue

My repo (with .nycrc, no .json because as stated that doesn't work) can be found here.

Forensic Information

Operating System: MacBook Pro, macOS 10.12.4. zsh in Terminal for my command line, to be thorough.
Environment Information: nvm running node 6.1.0; yarn for dependencies

@bcoe
Copy link
Member

bcoe commented Jul 30, 2017

@bensaufley this is totally a think now \o/ thanks for helping to implement it.

I've recently setup a community slack (see README.md) if you feel like staying in touch and contributing more to these projects.

@bcoe bcoe closed this as completed Jul 30, 2017
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

No branches or pull requests

2 participants