0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

JSHintでfor文内の無名関数を使った時のエラーを回避

Posted at

イベントのコールバックで引数渡すときなどどうしても必要な場合があるかなと思うので、
JSHintの設定から回避する。

SublimeLinterのエラー回避の説明になるけど、
JSHint本体でも同じオプションが使えるはず。

スクリーンショット_2013-12-18_13_18_10-4.png

jshint_optionsの欄に
“boss”: true, を追記

__Library_Application_Support_Sublime_Text_2_Packages_SublimeLinter_SublimeLinter_sublime-settings-4.png

bossの説明については下記参照。

// ----------------- 参考URL
http://www.htmlhifive.com/conts/web/view/library/JSLint_JSHint

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?