[Grunt & Yeoman] grunt-coffeelint と grunt-jsonlint で設定ファイルの妥当性をチェックする
grunt-coffeelint, grunt-jsonlint
[markdown]
> * [grunt-coffeelint](https://npmjs.org/package/grunt-coffeelint)
> * [coffeelint](https://npmjs.org/package/coffeelint)
> * [grunt-jsonlint](https://npmjs.org/package/grunt-jsonlint)
> * [jsonlint](https://npmjs.org/package/jsonlint)
## インストール
“`prettyprinted
% 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’]
“`
[/markdown]