我正在尝试在我的 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
如何配置它以查看不同的扩展名结尾?我在文档中找不到它。