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

Doesn't handle non-standard JSON file #5

Open
nikolay opened this issue Jul 7, 2016 · 3 comments
Open

Doesn't handle non-standard JSON file #5

nikolay opened this issue Jul 7, 2016 · 3 comments

Comments

@nikolay
Copy link

nikolay commented Jul 7, 2016

Examples: .babelrc, .eslintrc, .nsprc, .jsinspectrc, and so on.

@azeemba
Copy link
Owner

azeemba commented Jul 18, 2016

I certainly don't want to hardcode all the different config files that we can come up with. The best solution is probably to make this configurable somehow. I am not sure how this can be done though.

I am open to hear viable solutions.

@dguo
Copy link

dguo commented Aug 30, 2016

You can use rule options to make this configurable. I also agree that that's probably the best approach. .eslintrc can be JSON or YAML (though that documentation also says it's deprecated to not give it a .json or .yaml extension).

@azeemba
Copy link
Owner

azeemba commented Nov 27, 2018

The plugin can't dictate what files are linted so the above solution doesn't work. However, there seems to be some new discussion in eslint/rfcs#3 which will make this a user setting

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

No branches or pull requests

4 participants