function isClassStaticInitializerScope(scope) {
	if (scope.type === "class-static-block") {
		return true;
	}

	if (scope.type === "class-field-initializer") {
		// `scope.block` is PropertyDefinition#value node
		const propertyDefinition = scope.block.parent;

		return propertyDefinition.static;
	}

	return false;
}
Checks whether a given scope is the scope of a class static initializer.
Static initializers are static blocks and initializers of static fields.
@param {eslint-scope.Scope} scope A scope to check.
@returns {boolean} `true` if the scope is a class static initializer scope.