Lets us centralize linting rules for ECMA dialects
eslint has native JSX support on the way.
This is a simple centralization of eslint, allowing us to keep a single javascript notation standard across projects moving forwards. The point is to make it trivial for us to all share the same rule set, from the same repository, so that it's easier to do the right thing than to be lazy.
Tilt lint will register a task on the gulp instance you pass in, called lint
(unless you tell it otherwise,) which you may then use wherever as normal. The
below is a complete, functional gulp file.
var gulp = require('gulp'),
lint = require('tilt-eslint');
lint.gulpreg(gulp, { "targets" : "gulpfile.js somefile.js lib/otherfile.jsx" });
gulp.task('default', ['lint']);
You will need the following dependency in your package.json
:
"dependencies": {
"tilt-eslint": "git+ssh://[email protected]:Crowdtilt/eslint.git"
}