ESLint plugin
This project is maintained by iliubinskii
ESLint plugin / prefer-arrow-function-property
Requires use of arrow functions.
module.exports = {
plugins: ["misc"],
rules: {
"misc/prefer-arrow-function-property": "error"
}
};
const x = {
f() {},
g: function () {}
};
const x = {
f: () => {},
g(this: void) {},
h: function (this: void) {}
};