MOONGIFTはオープンソース・ソフトウェアを紹介するブログです。2021年07月16日で更新停止しました JavaScriptは何となく書きづらい言語です。コールバックを多用したりしてネストが深くなってしまったり、prototypeで拡張して却って分かりづらくなったり…なんて経験はないでしょうか。筆者はそれがありすぎてCoffeeScriptに飛びついた派なのですが。 素のJavaScriptを記述している方にお勧めしたいのがJSCSです。JavaScriptファイルのコードスタイルをチェックしてくれます。 JSCSの使い方 JSCSのインストールはnpmで行えます。 $ npm install jscs -g 後は標準出力で渡すだけです。 $ cat test.js | jscs --preset=jquery --reporter=console Invalid quote mar