Add rule configuration option to the demo #26
Comments
Plugins are a stretch, but options would be nice. |
Correct me if I'm wrong, but currently, there's absolutely no way to do plugins in a browser, right? That feels like an oversight, maybe that should be looked into. |
You are correct. It's not an oversight - ESLint is made primarily to be used on the command line. We only create a browserified bundle for demo purposes, but it's in no way meant to have all the functionality available on the command line. |
I was thinking more in terms of Orion, but I guess, they are forking ESLint anyways, if they want plugin support, they should be able to add it in. |
Yeah, they just need to create a plugin loader and it should work fine. |
I started looking into this, and the biggest problem that I see is rule configuration options. We do not have central place that lists all available options for rules, and in order to make this even remotely user friendly, I would need to list config options as something like checkboxes. |
I think in the short term it makes sense to just toggle options off or on rather than configuring them completely. We do have this issue open to figure out how to deal with rule options more sanely: eslint/eslint#967 |
Adding configuration to eslint demo (fixes #26)
ESLint has a ton of different rules, I think it would be good to add ability for users to play with different rules on the demo page. For that, we need to expose a way to configure them. It would be even cooler, if we would allow to use plugins, but I don't think that's possible with the current setup.
The text was updated successfully, but these errors were encountered: