Sublimelinter、特に Mac で 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
、さまざまな拡張子を見るように設定するにはどうすればよいですか? 私はドキュメントでそれを見つけることができません。