You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I love ajv-moment. However, we're using eslint now and the way its setup to parse the options isn't parseable as valid js. Objects have fields: values, while you're asking for an object that looks like an array.
Could you change it so that it's called like plugin({ ajv: ajv, moment: moment)? or just plugin(ajv, moment)?
Thanks. I'd prefer to use a blessed version rather than forking.
David
The text was updated successfully, but these errors were encountered:
@davfive the example in the README is using the ES6 shorthand syntax for object properties covered by the object-shortand ESLint rule. It is perfectly valid to call the plugin using the more verbose syntax for object properties:
Hi,
I love ajv-moment. However, we're using eslint now and the way its setup to parse the options isn't parseable as valid js. Objects have fields: values, while you're asking for an object that looks like an array.
Could you change it so that it's called like plugin({ ajv: ajv, moment: moment)? or just plugin(ajv, moment)?
Thanks. I'd prefer to use a blessed version rather than forking.
David
The text was updated successfully, but these errors were encountered: