[Grunt & Yeoman] grunt-coffeelint と grunt-jsonlint で設定ファイルの妥当性をチェックする

grunt-coffeelint, grunt-jsonlint

インストール

% npm install grunt-coffeelint --save-dev
% npm install grunt-jsonlint --save-dev

Gruntfile

#
# 設定ファイルの妥当性チェック
#
coffeelint:
  options:
    max_line_length:
      value: 120
      level: "warn"
  gruntfile:
    src: 'Gruntfile.coffee'
jsonlint:
  npm:
    src: ['package.json']
  bower:
    src: ['bower.json']
  htmlhint:
    src: ['.htmlhintrc']
  csslint:
    src: ['.csslintrc']
  jshint:
    src: ['.jshintrc']