/*eslint no-empty-function: "error"*/
function foo() {
// do nothing.
}
const baz = () => {
foo();
};
export class Bar {
public meth1() {
// do something
}
public meth2() {
baz();
}
}
反例
/*eslint no-empty-function: "error"*/
function foo() {
}
const baz = () => {
};
export class Bar {
public meth1() {
}
public meth2() {
}
}