jshint/jshint

/* global */ list accepts spaces in identifiers

Open

#3,208 建立於 2017年11月9日

在 GitHub 查看
 (9 留言) (0 反應) (0 負責人)JavaScript (8,937 star) (1,757 fork)batch import
P3good first issue

描述

/*global window, document, require, externData alert, machineID:true, externJSON $*/

produces the output

'externData alert' is defined but never used (W098)

except that isn't a legal identifier because of the embedded space. (It should have been "externData, alert' but sloppy typing on my part, which led to the warning.)

The warning should be more along the lines of 'Illegal JavaScript identifier,' should it not?

貢獻者指南