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

Update require-meta-schema rule to allow object schemas (in addition to array schemas) #90

Conversation

bmish
Copy link
Member

@bmish bmish commented Jan 16, 2020

Turns out that eslint supports both array and object schemas. eslint itself has a handful of rules that use objects schemas, although array schemas are much more common.

https://eslint.org/docs/developer-guide/working-with-rules#options-schemas

Example rule with object schema: https://github.com/eslint/eslint/blob/master/lib/rules/eqeqeq.js#L29
Example rule with array schema: https://github.com/eslint/eslint/blob/master/lib/rules/func-style.js#L22

…dition to array schemas)

Turns out that eslint supports both array and object schemas. eslint itself has a handful of rules that use objects schemas, although array schemas are much more common.

https://eslint.org/docs/developer-guide/working-with-rules#options-schemas
@not-an-aardvark not-an-aardvark merged commit e582cb6 into eslint-community:master Jan 17, 2020
@not-an-aardvark
Copy link
Contributor

Thanks, published v2.2.1

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

Successfully merging this pull request may close these issues.

2 participants