fis-lint-jshint

A lint plugin for fis to validate js file.

npm install fis-lint-jshint
8 downloads in the last week
55 downloads in the last month

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
//file : path/to/project/fis-conf.js
fis.config.merge({
    modules : {
        lint : {
            js : 'jshint'
        }
    },
    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

npm loves you