-
Notifications
You must be signed in to change notification settings - Fork 49
Declare a JSON schema in 'default' for each rule #222
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
Conversation
Bump :) |
this PR is ready |
const create = context => { | ||
const ava = createAvaRule(); | ||
const maxAssertions = context.options[0] || 5; | ||
const maxAssertions = context.options[0] || MAX_NUMBER_ASSERTIONS_BY_DEFAULT; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you defining the default both here and in the schema?
@@ -94,6 +105,7 @@ module.exports = { | |||
docs: { | |||
url: util.getDocsUrl(__filename) | |||
}, | |||
type: 'problem', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be placed above docs
. Same with the other places.
@@ -141,14 +141,16 @@ const schema = [{ | |||
enum: [ | |||
'always', | |||
'never' | |||
] | |||
], | |||
default: null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
undefined
would be better
For fix #214 :