eslint-plugin-flowtype
Advanced tools
Comparing version 2.7.1 to 2.7.2
@@ -35,7 +35,7 @@ 'use strict'; | ||
if (node.type === 'FunctionTypeParam') { | ||
var colon = sourceCode.getTokenBefore(typeAnnotation); | ||
var colon = sourceCode.getFirstToken(node, 1); | ||
return { | ||
colon: colon, | ||
spaceAfter: typeAnnotation.start - colon.end | ||
spaceAfter: sourceCode.getTokenAfter(colon).start - colon.end | ||
}; | ||
@@ -172,3 +172,3 @@ } else { | ||
var colon = getColon(objectTypeProperty); | ||
var typeAnnotation = objectTypeProperty.value; | ||
var typeAnnotation = sourceCode.getTokenAfter(colon); | ||
@@ -175,0 +175,0 @@ var spaces = typeAnnotation.start - colon.end; |
{ | ||
"name": "eslint-plugin-flowtype", | ||
"description": "Flowtype linting rules for ESLint.", | ||
"version": "2.7.1", | ||
"version": "2.7.2", | ||
"main": "./dist/index.js", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -233,3 +233,3 @@ <h1 id="eslint-plugin-flowtype">eslint-plugin-flowtype</h1> | ||
Alternatively, you can want to exclude only function expressions (e.g. `x => x * 2`). Provide `excludeArrowFunctions` with `expressionsOnly` for this. | ||
Alternatively, you can want to exclude only concise arrow functions (e.g. `x => x * 2`). Provide `excludeArrowFunctions` with `expressionsOnly` for this. | ||
@@ -333,3 +333,3 @@ ```js | ||
Alternatively, you can want to exclude only function expressions (e.g. `() => 2`). Provide `excludeArrowFunctions` with `expressionsOnly` for this. | ||
Alternatively, you can want to exclude only concise arrow function (e.g. `() => 2`). Provide `excludeArrowFunctions` with `expressionsOnly` for this. | ||
@@ -336,0 +336,0 @@ ```js |
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
95684