为什么我在JSHint中遇到"意外1"?

All*_*onC 2 javascript html5 jshint

var canvas = document.createElement('canvas'),
    ctx = canvas.getContext("2d"); //Create the context

//more code (width, height defined elsewhere)
ctx.beginPath();
ctx.moveTo(0.35 * width, 0);
ctx.lineTo(0.35 * width, 0.65 * height);
ctx.lineTo(1 * width, 0.65 * height); //JSHint is complaining about the 1 here
ctx.stroke();
Run Code Online (Sandbox Code Playgroud)

为什么我在这里收到错误?

Sco*_*tux 5

这是一个毫无意义的操作,乘以1不做任何事情.只需使用宽度.