eslint-plugin-misc

ESLint plugin

This project is maintained by iliubinskii

sort-construct-signature

ESLint plugin / sort-construct-signature

Requires construct signature to be first child.

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

Examples of incorrect code

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

Examples of correct code

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