使用Javascript编程时,可以使用以下语法在Javascript文件中配置JSHint
/ * jshint eqnull:true,eqeqeq:false * /
有没有办法在Coffeescript文件中设置这些特定配置?
答案 0 :(得分:4)
### jshint eqnull: true, eqeqeq: false ###
alert "regular coffee script here..."
/* jshint eqnull: true, eqeqeq: false */alert("regular coffee script here...");
### jshint eqnull: true, eqeqeq: false ###
### break after hint ###
alert "regular coffee script here..."
/* jshint eqnull: true, eqeqeq: false */
/* break after hint */alert("regular coffee script here...");