import { ruleCreator } from "../_internal/rule-creator.js";
const disallowedSelector = "Property > FunctionExpression.value:not([params.0.name='this'])";
/**
 * Prefer arrow-function object properties over function-expression properties.
 */
const rule = ruleCreator({
    create: (context) => ({
        [disallowedSelector]: (node) => {
            context.report({
                messageId: "forbidden",
                node,
            });
        },
    }),
    defaultOptions: [],
    meta: {
        deprecated: false,
        docs: {
            deprecated: false,
            description: "require arrow-function properties when `this` is not required.",
            frozen: false,
            recommended: false,
            url: "https://nick2bad4u.github.io/eslint-plugin-etc-misc/docs/rules/prefer-arrow-function-property",
        },
        hasSuggestions: false,
        messages: {
            forbidden: "Prefer arrow function properties.",
        },
        schema: [],
        type: "suggestion",
    },
    name: "prefer-arrow-function-property",
});
export default rule;
//# sourceMappingURL=prefer-arrow-function-property.js.map