eslint-plugin-misc

ESLint plugin

This project is maintained by iliubinskii

sort-call-signature

ESLint plugin / sort-call-signature

Requires call signature to be first child.

module.exports = {
  plugins: ["misc"],
  rules: {
    "misc/sort-call-signature": "error"
  }
};

Examples of incorrect code

interface I {
  x: string;
  (): string;
}

Examples of correct code

interface I {
  (): string;
  x: string;
}