function isValidSpacing(left, right, expected) {
			return (
				astUtils.isClosingBraceToken(right) ||
				!astUtils.isTokenOnSameLine(left, right) ||
				sourceCode.isSpaceBetweenTokens(left, right) === expected
			);
		}
Check whether the spacing between the given 2 tokens is valid or not.
@param {Token} left The left token to check.
@param {Token} right The right token to check.
@param {boolean} expected The expected spacing to check. `true` if there should be a space.
@returns {boolean} `true` if the spacing between the tokens is valid.