Automatically fix JSHint results with fixmyjs
JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.editorconfig
.gitattributes
.gitignore
.jshintrc
.travis.yml
LICENSE
README.md
index.js
package.json chore(package): update rcloader to version 0.2.1 Aug 18, 2016

README.md

gulp-fixmyjs

NPM version Build Status Coverage Status Dependency Status

fixmyjs plugin for gulp

Usage

First, install gulp-fixmyjs as a development dependency:

npm install --save-dev gulp-fixmyjs

Then, add it to your gulpfile.js:

var fixmyjs = require("gulp-fixmyjs");

gulp.src("./src/*.js")
	.pipe(fixmyjs({
		// JSHint settings here
	}))
	.pipe(gulp.dest("./src"));

API

fixmyjs(options)

options.legacy

Type: Boolean, Default: false

Enables legacy mode

options.lookup

Type: Boolean, Default: true

Enables looking up the .jshintrc configuration file

JSHint options

Any of the JSHint options will be passed to fixmyjs, and would get precedence over .jshintrc file

License

MIT License