eslint-plugin-flowtype
Advanced tools
Comparing version 2.2.4 to 2.2.5
@@ -39,2 +39,14 @@ 'use strict'; | ||
}); | ||
if (functionNode.returnType) { | ||
var spaceAfter = functionNode.returnType.typeAnnotation.start - functionNode.returnType.start - 1; | ||
if (always && spaceAfter > 1) { | ||
context.report(functionNode, 'There must be 1 space after return type colon.'); | ||
} else if (always && spaceAfter === 0) { | ||
context.report(functionNode, 'There must be a space after return type colon.'); | ||
} else if (!always && spaceAfter > 0) { | ||
context.report(functionNode, 'There must be no space after return type colon.'); | ||
} | ||
} | ||
}; | ||
@@ -41,0 +53,0 @@ }); |
{ | ||
"name": "eslint-plugin-flowtype", | ||
"description": "Flowtype linting rules for ESLint.", | ||
"version": "2.2.4", | ||
"version": "2.2.5", | ||
"main": "./dist/index.js", | ||
@@ -6,0 +6,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
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
42126
316