JSLint(CLI):选项? [英] JSLint (CLI): options?

查看:146
本文介绍了JSLint(CLI):选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行 JSLint Rhino版本如下所示:

I'm running JSLint's Rhino version from the Ubuntu command line like so:

$ rhino jslint.js myScript.js

虽然网络界面提供了各种选项,但我无法弄清楚如何通过命令行调用它们。
我是否忽略了文档中的任何内容?

While the web interface offers various options, I couldn't figure out how to invoke those via the command line. Am I overlooking anything in the documentation?

推荐答案

是的!你确实想念它。您可以在.js文件的顶部指定jslint的选项。有关示例,请参阅文档页面并阅读选项部分。

Yes! You did miss it. You can specify the options for jslint at the top of your .js file. See the doc page and read the options section for an example.

这篇关于JSLint(CLI):选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆