0.0.1 • Published 9 years ago

tch-lint-jshint v0.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
9 years ago

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.cofnig.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
});

more options