no shadowed variable code example
Example: Shadowed name: 'resolve' (no-shadowed-variable)tslint(1)
fs.readdir(fileUrl, (err, files) => {
fs.readFile(path.join(fileUrl, files[0]), function (err, data) {
if (!err) {
res.send(data);
}
});
});