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

Configuration files should be JSON with comments #492

Closed
roadhump opened this Issue Jan 4, 2014 · 2 comments

Comments

Projects
None yet
3 participants
@roadhump
Contributor

roadhump commented Jan 4, 2014

I suggest use CJSON (commented JSON) as configuration file format. We should have comments (one-line and multiline) in .eslintrc and other configuration files.

@rlidwka

This comment has been minimized.

Show comment
Hide comment
@rlidwka

rlidwka Jan 4, 2014

If you're going to use JSON+comments, why not use JSON5 then? Since you're going to have an external dependency anyway.

CJSON still have issues with trailing commas and other stuff, so it's basically the same deal, although a bit better than JSON. And I don't see it being a standard any time soon.

rlidwka commented Jan 4, 2014

If you're going to use JSON+comments, why not use JSON5 then? Since you're going to have an external dependency anyway.

CJSON still have issues with trailing commas and other stuff, so it's basically the same deal, although a bit better than JSON. And I don't see it being a standard any time soon.

@sindresorhus

This comment has been minimized.

Show comment
Hide comment
@sindresorhus

sindresorhus Jan 5, 2014

Contributor

There's also strip-json-comments which just strips comments, so it results in pure JSON and can be parsed with the native JSON parser.

Contributor

sindresorhus commented Jan 5, 2014

There's also strip-json-comments which just strips comments, so it results in pure JSON and can be parsed with the native JSON parser.

@nzakas nzakas closed this in 328b7b1 Jan 20, 2014

@eslint eslint bot locked and limited conversation to collaborators Feb 7, 2018

@eslint eslint bot added the archived due to age label Feb 7, 2018

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