'use strict';

const require_runtime = require('../_virtual/_rolldown/runtime.js');
const require_index = require('../utils/index.js');

//#region lib/rules/no-deprecated-dollar-listeners-api.js
/**
* @author Yosuke Ota
* See LICENSE file in root directory for full license.
*/
var require_no_deprecated_dollar_listeners_api = /* @__PURE__ */ require_runtime.__commonJSMin(((exports, module) => {
	const utils = require_index.default;
	module.exports = {
		meta: {
			type: "problem",
			docs: {
				description: "disallow using deprecated `$listeners` (in Vue.js 3.0.0+)",
				categories: ["vue3-essential"],
				url: "https://eslint.vuejs.org/rules/no-deprecated-dollar-listeners-api.html"
			},
			fixable: null,
			schema: [],
			messages: { deprecated: "The `$listeners` is deprecated." }
		},
		create(context) {
			return utils.defineTemplateBodyVisitor(context, { VExpressionContainer(node) {
				for (const reference of node.references) {
					if (reference.variable != null) continue;
					if (reference.id.name === "$listeners") context.report({
						node: reference.id,
						messageId: "deprecated"
					});
				}
			} }, utils.defineVueVisitor(context, { MemberExpression(node) {
				if (node.property.type !== "Identifier" || node.property.name !== "$listeners") return;
				if (!utils.isThis(node.object, context)) return;
				context.report({
					node: node.property,
					messageId: "deprecated"
				});
			} }));
		}
	};
}));

//#endregion
Object.defineProperty(exports, 'default', {
  enumerable: true,
  get: function () {
    return require_no_deprecated_dollar_listeners_api();
  }
});