7

カスタマイズしたバージョンの Twitter Bootstrap をローカルでビルドするための環境をインストールして構成しました。

これは私がしたことです:

  1. ノードのインストール
  2. npmをインストール
  3. インストールを減らす
  4. Bootstrap をローカルに複製する
  5. 実行make buildして Bootstrap をコンパイルする

ステップ 5:

~/devel/parking/bootstrap$ make build
jshint js/*.js --config js/.jshintrc

js/bootstrap-affix.js: line 23, col 17, Bad option: ';_;'.
js/bootstrap-alert.js: line 23, col 17, Bad option: ';_;'.
js/bootstrap-button.js: line 23, col 17, Bad option: ';_;'.
js/bootstrap-carousel.js: line 23, col 17, Bad option: ';_;'.
js/bootstrap-collapse.js: line 23, col 17, Bad option: ';_;'.
js/bootstrap-dropdown.js: line 23, col 17, Bad option: ';_;'.
js/bootstrap-modal.js: line 23, col 17, Bad option: ';_;'.
js/bootstrap-popover.js: line 23, col 17, Bad option: ';_;'.
js/bootstrap-scrollspy.js: line 23, col 17, Bad option: ';_;'.
js/bootstrap-tab.js: line 23, col 17, Bad option: ';_;'.
js/bootstrap-tooltip.js: line 24, col 17, Bad option: ';_;'.
js/bootstrap-transition.js: line 23, col 17, Bad option: ';_;'.
js/bootstrap-typeahead.js: line 23, col 17, Bad option: ';_;'.

13 errors
make: *** [test] Error 2

23行目:

"use strict"; // jshint ;_;

23 行目から削除することで問題を解決できました// jshint ;_;。ただし、Bootstrap のソースはそのままにしておきたいです。

これらのエラーを取り除くにはどうすればよいですか? また、「Bad option」エラーは何を意味しますか?


js/.jsintrc:

{
    "validthis": true,
    "laxcomma" : true,
    "laxbreak" : true,
    "browser"  : true,
    "eqnull"   : true,
    "debug"    : true,
    "devel"    : true,
    "boss"     : true,
    "expr"     : true,
    "asi"      : true
}
4

3 に答える 3

4

ブートストラップの問題を検索した後、今同じエラーに遭遇しました。

私は解決策を見つけました。これらを見てください: https://github.com/twitter/bootstrap/pull/5244 https://github.com/twitter/bootstrap/issues/7043

于 2013-02-24T18:03:17.527 に答える