【发布时间】:2014-08-03 09:08:03
【问题描述】:
我正在尝试在我的 Mac 上配置 sublimelinter,特别是 jshint。在我的 Windows 版本的 SublimeText 中有以下部分 SublimeLinter.sublime-settings
"jshint_options":
{
// To fix column positions for JSHint errors you may want to add `"indent": 1` to your
// **User** "jshint_options". This issue affects users with tabs for indentation.
// This fix was reverted due to a conflict with using the `"white": true` option.
// "indent": 1,
"evil": true,
"regexdash": true,
"browser": true,
"wsh": true,
"trailing": true,
"sub": true
},
当我在我的 Mac 上查看文件时,此部分不存在,是否有地方可以在没有单独设置文件的情况下在 Mac 版本上编辑这些选项?还是 jshint 的全局设置文件?
我一直在研究类似的问题,但没有找到明确的解决方案。
更新:
实际上,在控制台上使用它时似乎根本没有发现任何错误。我的 javascript 文件没有以 .js 结尾,如何配置它以查看不同的扩展名?我在文档中找不到它。
【问题讨论】:
-
我还没有使用 sublimelinter,但你确定你在两台机器上使用相同的 sublimelinter 版本吗?文档说,linter 现在是分开的,而且它们的选项也可能是分开的。你查了吗sublimelinter-jshint docs
-
是的,看起来 windows 版本是旧版本
标签: sublimetext3 jshint sublimelinter