eslint-plugin-flowtype
Advanced tools
Comparing version 3.6.1 to 3.7.0
@@ -20,3 +20,3 @@ 'use strict'; | ||
annotateUndefined: { | ||
enum: ['always', 'never'], | ||
enum: ['always', 'never', 'ignore'], | ||
type: 'string' | ||
@@ -45,3 +45,3 @@ }, | ||
var annotateReturn = (_lodash2.default.get(context, 'options[0]') || 'always') === 'always'; | ||
var annotateUndefined = (_lodash2.default.get(context, 'options[1].annotateUndefined') || 'never') === 'always'; | ||
var annotateUndefined = _lodash2.default.get(context, 'options[1].annotateUndefined') || 'never'; | ||
var skipArrows = _lodash2.default.get(context, 'options[1].excludeArrowFunctions') || false; | ||
@@ -126,5 +126,5 @@ | ||
if (isFunctionReturnUndefined && isReturnTypeAnnotationUndefined && !annotateUndefined) { | ||
if (isFunctionReturnUndefined && isReturnTypeAnnotationUndefined && annotateUndefined === 'never') { | ||
context.report(functionNode, 'Must not annotate undefined return type.'); | ||
} else if (isFunctionReturnUndefined && !isReturnTypeAnnotationUndefined && annotateUndefined) { | ||
} else if (isFunctionReturnUndefined && !isReturnTypeAnnotationUndefined && annotateUndefined === 'always') { | ||
context.report(functionNode, 'Must annotate undefined return type.'); | ||
@@ -131,0 +131,0 @@ } else if (!isFunctionReturnUndefined && !isReturnTypeAnnotationUndefined && annotateReturn && !returnType && !shouldFilterNode(functionNode)) { |
@@ -63,3 +63,3 @@ { | ||
}, | ||
"version": "3.6.1" | ||
"version": "3.7.0" | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
464636
4898