A small wrapper of eslint, pre-configured to StoneCypher's preferences
MIT License
A small wrapper of eslint, pre-configured to StoneCypher's preferences
This is two things:
eslint -c node_modules/sc-eslint/sc-eslint-config.json *.js
Trivially simple.
var lint = require("sc-eslint");
var tgts = "gulpfile.js estask.js";
lint.gulpreg(gulp, { "targets" : tgts });
And now you have a gulp task named lint
, which you may use like so:
gulp.task('default', ['lint']);
Because this way, as eslint gets stronger, as my preferences evolve, etc, all I need to do is to keep one module up to date, then all dependents will be brought into line.
Which is pretty sweet, if you think about it.
Great! Don't we all? :)
Make one for yourself! Here's how:
sc-eslint-config.json
to your own config filelrules
points to, if using the gulp tasksc-eslint
is MIT licensed, because viral licenses and newspeak language modification are evil. Free is only free when it's free for everyone.