A lint plugin for fis to validate js file.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.npmignore
CHANGELOG.md
LICENSE.md
README.md
index.js
package.json

README.md

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

more options