ESLintでv1.4から導入された--cacheオプションを試してみたのですが、 これは使うべき!と思ったのでご紹介。 何か? 前回のeslintにかけた結果を.eslintcacheファイル(デフォルト)に保存します。 二回目以降は、更新されたファイル以外をチェックしなくなるのでlint時間が短くなります! 実際にlint速度を計測してみた結果 .eslintrc extends: eslint:recommended 計測 # 435ファイルに対して実行してみました ❯ find src -name '*.js'|wc -l 435 # 1回目 ❯ time eslint --cache src eslint --cache src 3.04s user 0.15s system 108% cpu 2.952 total # 2回目 ❯ time eslint --cache src