-
Notifications
You must be signed in to change notification settings - Fork 7
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
Various improvements to rule option lists #491
Comments
Unless I'm missing something, options defined as |
@TheSonOfThomp I assume you mean a rule like quotes that is configured with a string value instead of an object: |
Exactly, yeah. Something defined in the schema as: schema: [{
type: "string",
description: "..."
}] I'm able to use an object property for now (which may be a better api for my case) |
An object API for rules is almost always a better choice as it allows you to add additional options later (much more future-proof). However, it would still be good for us to support the basic string scenario. |
E.g.
meta.defaultOptions
on rules eslint/rfcs#113?Number.MAX_VALUE
instead of1.7976931348623157e+308
Improvements so far:
Follow-up to:
The text was updated successfully, but these errors were encountered: