watchIgnoreDotFiles is a boolean flag (for files starting with a dot)

if (this.watchIgnoreDotFiles && path.basename(fileName)[0] === '.') {
    return false;
}