eslint-plugin-json icon indicating copy to clipboard operation
eslint-plugin-json copied to clipboard

Doesn't handle non-standard JSON file

Open nikolay opened this issue 9 years ago • 3 comments

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

nikolay avatar Jul 07 '16 13:07 nikolay

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.

azeemba avatar Jul 18 '16 21:07 azeemba

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).

dguo avatar Aug 30 '16 19:08 dguo

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 https://github.com/eslint/rfcs/pull/3 which will make this a user setting

azeemba avatar Nov 27 '18 23:11 azeemba