eslint-plugin-flowtype
Advanced tools
Comparing version 2.49.2 to 2.49.3
@@ -32,5 +32,13 @@ 'use strict'; | ||
var requireProperPunctuation = function requireProperPunctuation(node) { | ||
var tokens = context.getSourceCode().getTokens(node); | ||
var lastToken = tokens[tokens.length - 1]; | ||
var sourceCode = context.getSourceCode(); | ||
var tokens = sourceCode.getTokens(node); | ||
var lastToken = void 0; | ||
lastToken = tokens[tokens.length - 1]; | ||
if (lastToken.type !== 'Punctuator' || !(lastToken.value === SEMICOLON.char || lastToken.value === COMMA.char)) { | ||
var parentTokens = sourceCode.getTokens(node.parent); | ||
lastToken = parentTokens[parentTokens.indexOf(lastToken) + 1]; | ||
} | ||
if (lastToken.type === 'Punctuator') { | ||
@@ -37,0 +45,0 @@ if (lastToken.value === BAD.char) { |
@@ -56,3 +56,3 @@ { | ||
}, | ||
"version": "2.49.2" | ||
"version": "2.49.3" | ||
} |
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
219176
2797