eslint-plugin-misc

ESLint plugin

This project is maintained by iliubinskii

typescript/require-this-void

ESLint plugin / typescript/require-this-void

Requires “this: void” for static methods.

module.exports = {
  plugins: ["misc"],
  rules: {
    "misc/typescript/require-this-void": "error"
  }
};

Examples of incorrect code

class C {
  static f() {}
}

Examples of correct code

class C {
  static f(this: void) {}
}