Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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