import { ruleCreator } from "../_internal/rule-creator.js";
const disallowedSelector = "TSInterfaceBody > TSCallSignatureDeclaration:not(:first-child)";
/**
 * Require interface call signatures to appear before all other members.
 */
const rule = ruleCreator({
    create: (context) => ({
        [disallowedSelector]: (node) => {
            context.report({
                messageId: "forbidden",
                node,
            });
        },
    }),
    defaultOptions: [],
    meta: {
        deprecated: false,
        docs: {
            deprecated: false,
            description: "require call signatures to be the first member in interfaces.",
            frozen: false,
            recommended: false,
            url: "https://nick2bad4u.github.io/eslint-plugin-etc-misc/docs/rules/sort-call-signature",
        },
        hasSuggestions: false,
        messages: {
            forbidden: "Call signature should be first.",
        },
        schema: [],
        type: "suggestion",
    },
    name: "sort-call-signature",
});
export default rule;
//# sourceMappingURL=sort-call-signature.js.map