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

Support for adding format type in package.json #318

Open
isha-talegaonkar opened this issue Jun 22, 2022 · 2 comments
Open

Support for adding format type in package.json #318

isha-talegaonkar opened this issue Jun 22, 2022 · 2 comments

Comments

@isha-talegaonkar
Copy link

Hi,

I wanted to know how we can specify the format of the output as json inside the package.json file. So far, everything I tried has not worked.

@cjoudrey
Copy link
Owner

Hi @isha-talegaonkar,

I think that feature might be missing. Good catch!

I don't have time at the moment to address this issue, but I think the fix should be relatively straight forward.

I believe adding format to this hash and writing a few tests would solve the problem:

return {
rules: cosmic.config.rules,
rulesOptions: cosmic.config.rulesOptions || {},
ignore: cosmic.config.ignore || {},
customRulePaths: customRulePaths || [],
schemaPaths: schemaPaths,
};

@isha-talegaonkar
Copy link
Author

Hi @cjoudrey
Thank you for the revert!

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