ESLint plugin
This project is maintained by iliubinskii
ESLint plugin / typescript/class-methods-use-this
This rule wraps “class-methods-use-this” core rule, but skips methods with “this: void” argument.
module.exports = {
plugins: ["misc"],
rules: {
"misc/typescript/class-methods-use-this": "error"
}
};
class SampleClass {
f() {}
}
class SampleClass {
f(this: void) {}
}