fis-lint-jshint
v0.0.10
Published
A lint plugin for fis to validate js file.
Downloads
139
Readme
fis-lint-jshint
A lint plugin for fis to validate js file.
usage
$ npm install -g fis-lint-jshint
$ vi path/to/project/fis-conf.js
//configure plugin
fis.config.set('modules.lint.js', 'jshint');
//configure plugin settings
fis.config.set('settings.lint.jshint', {
//ignored some files
//ignored : 'static/libs/**.js',
ignored : [ 'static/libs/**.js', /jquery\.js$/i ],
//using Chinese reporter
i18n : 'zh-CN',
//jshint options
camelcase : true,
curly : true,
eqeqeq : true,
forin : true,
immed : true,
latedef : true,
newcap : true,
noarg : true,
noempty : true,
node : true
});