Variable name is too small
121 cronTime: "0 0 0/1 1/1 * *", // http://www.cronmaker.com/
122 onTick: async () => {
123 try {
124 var d = new Date();125 console.log(
126 `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(
127 2,
Description
Single character variable names affect code readability and complicate code refactoring, because of the difficulty in searching and replacing single characters.
This issue will not be raised for certain special identifiers, such as i
, j
or n
. It will also not be reported for the parameters used in for
and while
loops.
Bad Practice
var a;
const l = 90
Recommended
var age;
const limit = 90;
for(let o = 2; o < 10; o++){
sum += o
}