Style: no more var

This commit is contained in:
DC
2016-08-31 14:36:11 -07:00
parent 0bda5358bd
commit 3f6cc97a02
54 changed files with 676 additions and 679 deletions

View File

@@ -30,10 +30,9 @@ files.forEach(function (file) {
error = 'Line >100 chars'
}
// TODO: No vars
// if (line.match(/^var /) || line.match(/ var /)) {
// error = 'Use const or let'
// }
if (line.match(/^var /) || line.match(/ var /)) {
error = 'Use const or let'
}
if (error) {
let name = path.basename(file)