Skip to content

Crowdtilt/tilt-eslint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tilt-eslint

Lets us centralize linting rules for ECMA dialects

eslint has native JSX support on the way.

What's this for?

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.

Example

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"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published